天翼云服务器还得备案,服了,服务器备个蛋案啊,真是麻烦的一逼。不备案不给你开放80端口,你说气不气。
那行,换个服务器,换了个腾讯云,远程ssh又连接不上,我真是日了个操,这些服务器的蛋事是真多,哎,阿里云就没有这么多事。给阿里云疯狂打call
用第三方工具ssh连接会报下面这个错误。
使用第三方SSH客户端远程连接Linux实例时,提示“No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)”错误怎么办?
本文介绍使用第三方SSH客户端远程连接Linux实例时,提示“No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)”错误的问题原因和解决方案。
方案
查看/etc/ssh/sshd_config
的参数PasswordAuthentication
配置是否有误。
cat etc/ssh/sshd_config
如下图所示,PasswordAuthentication
参数设置为no
,表示禁止以密码方式登录,需要修改为yes
。

修改PasswordAuthentication
的参数PasswordAuthentication
为yes
。
打开SSH配置文件。
vi etc/ssh/sshd_config
将PasswordAuthentication no
修改为PasswordAuthentication yes
。

按Esc键,输入:wq
保存修改。
执行如下命令,重启SSH服务。
systemctl restart sshd.service
重新远程连接Linux实例,确保可以正常连接。
文章转载自干货食堂,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




