1 验证方式不支持
如客户端登录时提示如下:
[www.linuxidc.com@CentOS-6-37 ~]$ ssh monitor@192.168.1.5
Permission denied (publickey,keyboard-interactive).
解决方法:
设置sshd的配置文件(sshd_config)的这条配置:PasswordAuthentication yes
然后重启服务:service sshd restart
2 普通用户登录密码始终错误,sshd启动有报错
sshd启动报错:
Unsupported option GSSAPIAuthentication
Unsupported option GSSAPICleanupCredentials
解决方法:
注销sshd的配置文件(sshd_config)的如下配置:
#GSSAPIAuthentication yes
#GSSAPICleanupCredentials yes
#UsePAM yes
然后重启服务:service sshd restart
3. 报错 PRNG is not seeded
root@localhost:/# /etc/init.d/ssh restart
PRNG is not seeded
After investigation we found that the /dev/urandom was not there on the VPS.
root@localhost:/dev# ls -al /dev/random
crw-r--r-- 1 root root 1, 8 Mar 2 19:28 /dev/random
root@localhost:/dev# ls -al /dev/urandom
ls: cannot access /dev/urandom: No such file or directory
By the below command, we created it and restarted SSH
root@localhost:/dev# mknod /dev/urandom c 1 9
root@localhost:/dev# /etc/init.d/ssh restart
* Restarting OpenBSD Secure Shell server sshd
...done.
4. 报错:
PTY allocation request failed on channel 0
可以用如下方式修改
1.rm -rf /dev/ptmx
2.mknod /dev/ptmx c 5 2
3.chmod 666 /dev/ptmx
4.umount /dev/pts
5.rm -rf /dev/pts
6.mkdir /dev/pts
7.mount /dev/pts