Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finally connected to my server #4

Merged
merged 3 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 0x0B-ssh/2-ssh_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
Host 54.88.12.218
IdentityFile ~/.ssh/school
PasswordAuthentication no
11 changes: 11 additions & 0 deletions 0x0C-web_server/0-transfer_file
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Bash script that transfers a file from our client to a server:
if [ "$#" -lt 3 ]
then
echo "Usage: 0-transfer_file PATH_TO_FILE IP USERNAME PATH_TO_SSH_KEY"
elif [ "$#" -eq 3 ]
then
scp -o StrictHostKeyChecking=no "$1" "$3@$2:~/"
else
scp -o StrictHostKeyChecking=no -i "$4" "$1" "$3@$2:~/"
fi
15 changes: 15 additions & 0 deletions 0x0C-web_server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# <p align="center">Web Server</p>

- Web server is a computer that stores web server software and a website's component files (for example, HTML documents, images, CSS stylesheets, and JavaScript files).
- A web server connects to the Internet and supports physical data interchange with other devices connected to the web.

## <p align="center">![image](https://github.com/the1Riddle/alx-system_engineering-devops/assets/125451537/49d919ab-ad0c-42d7-af9e-db9b9f174126)</p>

Background Context
------------------

**Tips:** to test your answer Bash script, feel free to reproduce the checker environment:

- start a `Ubuntu 16.04` sandbox
- run your script on it
- see how it behaves