-
-
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
This file contains hidden or 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
| rsync -avz /path/to/local/sync/folder -e "ssh -i /path/to/ssh/key" ubuntu@ec2instance:/path/to/remote/sync/folder |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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