站内搜索

workerdance.com — Trusted craft, unfailing commitment
返回文章列表
开发工具

secureCRT连接服务器报错 Unable to authenticate

本文写于 2017 年,文中涉及的软件版本可能已有变化,核心排查思路仍可参考。

问题描述:

用secureCRT连接远程云服务器时, 报出了以下错误:

The client has disconnected from the server.Reason:
Unable to authenticate using any of the configured authentication methods.

谷歌一番后, 解决方案如下:

  1. 修改/etc/ssh/sshd_config的PasswordAuthentication项为yes

2. 重启ssh服务

service sshd restart

再次连接, 要求输入密码, 输入后, 连接成功

workerdance
workerdance

记录开发与运维中的实践和踩坑。