linux openssh密码错误,OpenSSH普通用户无法登录的几种情况的解决办法

  • Post author:
  • Post category:linux


OpenSSH普通用户无法登录的几种情况的解决方法

原帖:http://www.linuxidc.com/Linux/2012-05/59457.htm

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