Nam G VU
Nam G VU

Reputation: 35384

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

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?

enter image description here

Upvotes: 0

Views: 270

Answers (1)

devnull
devnull

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

Related Questions