SecureCRT ssh连接虚拟机后显示 A public key file has not been specified for this session,Would you like to...

SecuretCRT 连接linux服务器时, 都是输入用户名和密码进行登录的。出现这告警可能有两种可能:

1、可能是SSH客户端没有开启密码验证,或者SSH服务端不允许密码验证服务端开启密码验证的方法:修改/etc/ssh/sshd_config的PasswordAuthentication项为yes,重启服务($service sshd restart或者systemctl restart sshd.service)。

SecureCRT ssh连接虚拟机后显示 A public key file has not been specified for this session,Would you like to...

SecureCRT ssh连接虚拟机后显示 A public key file has not been specified for this session,Would you like to...

2、可能与ssh工具本身设置有关,取消公钥。

(1)已连接的在右键属性中取消公钥(我中文**版,你的自己翻译)。

SecureCRT ssh连接虚拟机后显示 A public key file has not been specified for this session,Would you like to...

(2)未连接的,右击连接 -> Properties -> 在左侧的Category中, 依次选择Connection / SSH2 , 在右侧的Authentication中, 取消勾选 Password, Keyboard Interactive, GSSAPI -> OK即可