Skip to content

Instantly share code, notes, and snippets.

@carltondickson
Created April 22, 2015 15:10
Show Gist options
  • Save carltondickson/a3267b1c31694b5992e2 to your computer and use it in GitHub Desktop.
Save carltondickson/a3267b1c31694b5992e2 to your computer and use it in GitHub Desktop.
AWS EC/SCP - Copy local files to remote
# 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