开发者社区 问答 正文

SSH免密码可行 SCP不行....怎么解决?

经过通用的生成密钥保存的步骤,SSH已经实现免密码登陆,但是SCP一直需要输入密码.如何解决?

展开
收起
a123456678 2016-06-24 10:45:22 2783 分享 版权
1 条回答
写回答
取消 提交回答
  • 添加-i identity_file选项

    -i identity_file
    Selects the file from which the identity (private key) for public key authentication is read. This option is directly passed to ssh(1).

    2019-07-17 19:46:42
    赞同 展开评论