【问题标题】:How can I rsync/scp files/folders among EC2 servers?如何在 EC2 服务器之间 rsync/scp 文件/文件夹?
【发布时间】:2013-04-27 14:45:29
【问题描述】:

我尝试在我的两台 EC2 服务器之间执行 scp/rsync 命令,但我收到了低快照错误。

通常当我通过 PuTTY ssh connect 到我的服务器时,我需要附加一个私钥。所以我可以猜到该命令需要密钥。

如何在命令中添加密钥?

【问题讨论】:

标签: ssh rsync scp private-key


【解决方案1】:

man scp 会显示一个选项-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).

由于选项传递给ssh(如上所述),因此可以传递给rsync-e "ssh -i /path/to/private/key"

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-03-02
  • 2015-07-07
  • 2016-03-31
  • 2019-11-24
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多