使用SecureCRT和putty登录linux服务器(ESXI等)出现keyboard-interactive authentication with the ssh2 server failed

时间:2024-04-08 11:07:08

使用SecureCRT和putty登录linux服务器(ESXI)出现keyboard-interactive authentication with the ssh2 server failed

一、先说SecureCRT出现的问题

问题:redhat6.5 使用SecureCRT 登陆时出现:keyboard-interactive authentication with the ssh2 server failed
方法:

进行如下设置,即可:

一般的:

Option ->Session Options ->Connection-> SSH2 ,在右边窗口的

Authentication的位置:
不要选择:Public Key(至少偶目前没搞懂如何设置的公钥)和GSSAPI

要选上Password和Keyboard Interavtive,

然后点击Keyboard Interavtive,再点击右边的Properties,去设置属性,选上Store Password,然后输入2次密码,确定即可。

这样就保存了密码,然后你以后再通过SSH2去连接服务器的时候,就不需要每次都输入密码了。

也有的系统,在登录的前在SecureCRT的option–session options下的ssh2下的Authentication中,不要选Keyboard Interavtive,手动输入密码,也可以进去,你根据自己系统的不同来通过勾选或者不勾选上面说的几项做一下测试和验证,最终都会顺利进入的。
使用SecureCRT和putty登录linux服务器(ESXI等)出现keyboard-interactive authentication with the ssh2 server failed
2、putty登录linux服务器(ESXI)出现:
使用SecureCRT和putty登录linux服务器(ESXI等)出现keyboard-interactive authentication with the ssh2 server failed
解决方法:

方法1:

通过远程管理或本地控制台方式用root登录到服务器
切换到ssh目录,如:cd /etc/ssh
打开并编辑sshd_config文件,如:vi sshd_config
找到”PermitRootLogin no”(在我的文件里是第32行),把”no”改成”yes”
保存该文件,并重新启动sshd服务:service sshd restart
开启本地技术支持功能, 可以在控制端按alt+f1然后输入unsupported,针对4.1默认是关闭了本地技术支持,所以没用,需要用vSphere Client在配置中**本地技术支持。 使用SecureCRT和putty登录linux服务器(ESXI等)出现keyboard-interactive authentication with the ssh2 server failed
使用SecureCRT和putty登录linux服务器(ESXI等)出现keyboard-interactive authentication with the ssh2 server failed
方法2:
vSphere Client中查看配置,安全配置文件,修改远程技术支持(SSH)。
把ssh相关的服务给启用了。然后在多测试几次就可以进去了
使用SecureCRT和putty登录linux服务器(ESXI等)出现keyboard-interactive authentication with the ssh2 server failed
能帮助到你,是我的荣幸!