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

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

阅读 4.5k
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).

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题