Created
April 22, 2015 15:10
-
-
Save carltondickson/a3267b1c31694b5992e2 to your computer and use it in GitHub Desktop.
AWS EC/SCP - Copy local files to remote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from -> to | |
# Copy to home directory as if web root isn't owned by the "ubuntu" user will get permission denied | |
scp -r -i ~/.ssh/adapt_framework_test.pem /home/carlton/Desktop/work ubuntu@54.x.x.x:/home/ubuntu/ | |
# Move files from home to web root | |
mv /home/ubuntu/ /var/www/html | |
# May have to set permissions on relocated files so the web server can serve them |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment