ssh - How can I rsync/scp files/folders among EC2 servers? -


i tried execute scp/rsync command between 2 of ec2 servers got error low snapshot.

normally when ssh connect servers via putty, need attach private key. can guess command requiring keys.

i don't know how add key in command. please help!

enter image description here

man scp display option -i:

  -i identity_file          selects file identity (private key) rsa authentication read.  option directly passed ssh(1). 

since option passed ssh (as noted above), can passed rsync: -e "ssh -i /path/to/private/key"


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -