Skip to content

Instantly share code, notes, and snippets.

@alvarovillafane
Forked from alotaiba/gist:913313
Created November 18, 2016 04:49
Show Gist options
  • Select an option

  • Save alvarovillafane/2cca195dd50e501fe2341d1ad310aeb1 to your computer and use it in GitHub Desktop.

Select an option

Save alvarovillafane/2cca195dd50e501fe2341d1ad310aeb1 to your computer and use it in GitHub Desktop.
Using rsync to sync files to an Amazon EC2 instance using SSH key
rsync -avz /path/to/local/sync/folder -e "ssh -i /path/to/ssh/key" ubuntu@ec2instance:/path/to/remote/sync/folder
@alvarovillafane
Copy link
Author

alvarovillafane commented Nov 30, 2016

En ubuntu

rsync -avz -e "ssh -i key.pem" path-to-file.tgz ubuntu@xxx-xxxx-xxx:~/uploads

Dar permisos a user ubuntu en carpeta de destino

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment