当使用 SSH 登录云服务器 ECS (Elastic Compute Server) Linux 服务器时,即便正确输入了密码,也会出现类似如下错误信息: Disconnected:No supported authentication methods available
那是因为阿里云为了安全,必须使用密钥对登陆。先要创建密钥对,接着绑定到实例,然后使用puttygen.exe将前步创建的密钥对pem文件,转换成后缀名为ppk文件,接着在putty中进行登陆,登陆成功之后。
通过 管理终端 进入系统。
通过 cat 等指令查看 /etc/ssh/sshd_config中是否包含类似如下配置:PasswordAuthentication no # 说明:该参数默认启用,默认值为 yes。
如果需要修改相关策略配置,在继续之前建议进行文件备份。
使用 vi 等编辑器,将参数值设置为 yes,或者整个删除或注释(在最开头添加 # 号)整行配置。比如:# PasswordAuthentication no
使用如下指令重启 SSH 服务:service sshd restart
再次尝试登录服务器。解除必须使用密钥对进行登陆的限制。
I was looking at your website and noticed it appears the word "Cheet" is spelled wrong. I had similar problems on my site until someone mentioned it to me and I also now use software from SpellPerfect.com to keep my site error free.
In case you didn't realize, the word "cron" on your site is spelled incorrectly. I had similar issues on my website which hurt my credibility until someone pointed it out and I discovered some of the services like SpellHelper.com or SpellingCheck.com which help with these type of issues.
I think you misspelled the word "atleast" on your website. If you want to keep errors off of your site we've successfully used a tool like SpellPros.com in the past for our websites. A nice customer pointed out our mistakes so I'm just paying it forward :).
It looks like you've misspelled the word "nabour" on your website. I thought you would like to know :). Silly mistakes can ruin your site's credibility. I've used a tool called SpellScan.com in the past to keep mistakes off of my website.
-Ryan
It looks like this link is broken on your site: http://ituibar.com/xiaoshuo/goumaizhuti
I thought you would like to know :). Silly mistakes can ruin your site's credibility. I've used a tool called linkSniff.com in the past to keep mistakes off of my website.
-Kerri
PermitRootLogin no 设置成yes