diff --git a/0x0B-ssh/2-ssh_config b/0x0B-ssh/2-ssh_config new file mode 100644 index 0000000..c083a27 --- /dev/null +++ b/0x0B-ssh/2-ssh_config @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +Host 54.88.12.218 +IdentityFile ~/.ssh/school +PasswordAuthentication no diff --git a/0x0C-web_server/0-transfer_file b/0x0C-web_server/0-transfer_file new file mode 100755 index 0000000..5cfe760 --- /dev/null +++ b/0x0C-web_server/0-transfer_file @@ -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 diff --git a/0x0C-web_server/README.md b/0x0C-web_server/README.md new file mode 100644 index 0000000..3ca74bc --- /dev/null +++ b/0x0C-web_server/README.md @@ -0,0 +1,15 @@ +#

Web Server

+ +- 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. + +##

![image](https://github.com/the1Riddle/alx-system_engineering-devops/assets/125451537/49d919ab-ad0c-42d7-af9e-db9b9f174126)

+ +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