rsync a file using a ssh .pem public key
Using a public SSH key with rsync to transfer a single file. The key is the -e option which modifies the SSH command used by rsync.
rsync -a ./localfile.jpg user@hostname.com:/home/user/localfile.jpg -e 'ssh -i keypath.pem'
Leave a Reply