Is there a way to rsync between two ec2 instances? I found this Rsync to Amazon Ec2 Instance but its from local to an ec2 instance. Here is the command
rsync -av --progress data/* root@ipaddress:(path to folder)
And the error
Failed to add the host to the list of known hosts.
Permission denied (publickey).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]