欢迎光临
我们一直在努力

谷歌云ssh远程登录,centos初始化配置ssh,securecrt,winscp远程连接

走了很多坑,总是提示:

The client has disconnected from the server.Reason:
Unable to authenticate using any of the configured authentication methods.
总算找到了方法:

  1. 切换root用户: sudo -i 
  2. 设置root密码:passwd root
  3. 以下3条命令:
  4. sed -i ‘s/PermitRootLogin no/PermitRootLogin yes/g’ /etc/ssh/sshd_config;sed -i ‘s/PasswordAuthentication no/PasswordAuthentication yes/g’ /etc/ssh/sshd_config;reboot
  5. 一定要reboot,别听那些人乱说,service sshd restart 并不好使!
赞(0) 打赏
未经允许不得转载:罗刹 » 谷歌云ssh远程登录,centos初始化配置ssh,securecrt,winscp远程连接
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏