Amazon ec2 无法在两个ec2实例之间进行rsync

Amazon ec2 无法在两个ec2实例之间进行rsync,amazon-ec2,rsync,Amazon Ec2,Rsync,有没有办法在两个ec2实例之间进行rsync?我找到了这个,但它是从本地到ec2实例的。这是命令 rsync -av --progress data/* root@ipaddress:(path to folder) 错误呢 Failed to add the host to the list of known hosts. Permission denied (publickey). rsync: connection unexpectedly closed (0 bytes receive

有没有办法在两个ec2实例之间进行rsync?我找到了这个,但它是从本地到ec2实例的。这是命令

rsync -av --progress data/* root@ipaddress:(path to folder)
错误呢

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]

你忘了描述这个问题了。是什么阻止您仅使用
rsync
?你有错误吗?您不知道如何配置防火墙吗?实际的问题是什么?你从哪里运行rsync?还有哪两台主机参与了rsyncing?你需要提供更具体的细节。