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

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

远程连接linux主机错误a public key file has not been specified for this session与all available gssapi mechanis_第1张图片

取消如下公钥

远程连接linux主机错误a public key file has not been specified for this session与all available gssapi mechanis_第2张图片

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

远程连接linux主机错误a public key file has not been specified for this session与all available gssapi mechanis_第3张图片

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

vi /etc/ssh/sshd_config

然后重启一下:service sshd restart

你可能感兴趣的:(服务器,其他,1024程序员节,docker)