Skip to content

Commit

Permalink
connected to the server
Browse files Browse the repository at this point in the history
finally connected to my server
  • Loading branch information
the1Riddle authored Dec 4, 2023
2 parents 2fdb06d + 6a46184 commit 2e07eb3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
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

0 comments on commit 2e07eb3

Please sign in to comment.