如果出现 Permissions 0644 for ‘/root/.ssh/id_rsa’ are too open. 等错误显示了,原来只要把权限降到0600就ok了
输入命令

chmod 0600 /root/.ssh/id_rsa
  • 1

然后就可以密钥登陆了

sftp  -oPort=50022  x@IP
  • 1

转自:http://www.cppblog.com/gezidan/archive/2011/08/19/153826.html

相关文章:

  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2022-01-08
  • 2021-12-16
  • 2022-12-23
相关资源
相似解决方案