Reputation: 35384
I tried to execute scp/rsync command between two of my EC2 servers but I got the error as be low snapshot.
Normally when I ssh connect
to my servers via PuTTY, I need to attach a private key. So what I can guess is that the command is requiring the keys.
How can I add the key in the command?
Upvotes: 0
Views: 270
Reputation: 123508
man scp would display an option -i
:
-i identity_file
Selects the file from which the identity (private key) for RSA authentication is read. This option is directly passed to ssh(1).
Since the option is passed to ssh (as noted above), it can be passed to rsync
: -e "ssh -i /path/to/private/key"
Upvotes: 2