日期:2014-05-16  浏览次数:20736 次

sshd_config 配置
我的虚拟机装的是ubuntu-9.0.4版本,2.6内核,用putty连接时出现如下:
login as: lihacker
lihacker@10.0.2.15's password:
Access denied
lihacker@10.0.2.15's password:
Access denied
lihacker@10.0.2.15's password:
密码是正确的,PUTTY的Eventlog显示如下:
2011-12-02 20:50:42 Looking up host "10.0.2.15"
2011-12-02 20:50:42 Connecting to 10.0.2.15 port 22
2011-12-02 20:50:42 Server version: SSH-1.99-OpenSSH_3.7.1p1
2011-12-02 20:50:42 Using SSH protocol version 2
2011-12-02 20:50:42 We claim version: SSH-2.0-PuTTY_Release_0.61
2011-12-02 20:50:42 Doing Diffie-Hellman group exchange
2011-12-02 20:50:42 Doing Diffie-Hellman key exchange with hash SHA-1
2011-12-02 20:50:42 Host key fingerprint is:
2011-12-02 20:50:42 ssh-rsa 1024 b0:80:37:38:61:ea:3b:fc:fe:0c:e6:76:83:9f:1a:71
2011-12-02 20:50:42 Initialised AES-256 SDCTR client->server encryption
2011-12-02 20:50:42 Initialised HMAC-SHA1 client->server MAC algorithm
2011-12-02 20:50:42 Initialised AES-256 SDCTR server->client encryption
2011-12-02 20:50:42 Initialised HMAC-SHA1 server->client MAC algorithm
2011-12-02 20:50:47 Keyboard-interactive authentication refused
2011-12-02 20:50:50 Sent password
2011-12-02 20:50:50 Access denied
也就是“Keyboard-interactive authentication refused”问题,不知如何更改sshd_config 配置,请高手指教!

------解决方案--------------------
不行就换个ssh server就行了。方法肯定有的事

------解决方案--------------------
在服务器(你的虚拟机)的/etc/ssh/sshd_config设上这个,PasswordAuthentication yes

或者使用公钥鉴权。