远程连接linux主机错误a public key file has not been specified for this session与all available gssapi mechanis

腾讯云轻量应用服务器或者vagrant虚拟主机,SSH2连接可能会出现

在这里插入图片描述

取消如下公钥

在这里插入图片描述

错误all available gssapi mechanisms failed,去掉公钥,有的会出现这个错误

在这里插入图片描述

进入sshd_config配置文件 ,将PasswordAuthentication 的属性 no 改为 yes

vi /etc/ssh/sshd_config

然后重启一下:service sshd restart

猜你喜欢

转载自blog.csdn.net/weixin_44371237/article/details/121634036