开发者社区> 问答> 正文

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

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

展开
收起
a123456678 2016-06-28 15:06:53 1945 0
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:48:23
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载