1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > CentOS 7 升级 OpenSSH 导致用户无法登录

CentOS 7 升级 OpenSSH 导致用户无法登录

时间:2019-08-01 06:26:08

相关推荐

CentOS 7 升级 OpenSSH 导致用户无法登录

表象

/var/log/message

# error Could not get shadow information for <user>Jul 30 14:36:39 hessian01 sshd[61866]: Failed password for zhanghq from 192.168.2.176 port 41192 ssh2Jul 30 14:36:43 hessian01 sshd[61866]: Connection closed by authenticating user zhanghq 192.168.2.176 port 41192 [preauth]Jul 30 14:36:55 hessian01 sshd[61868]: error: Could not get shadow information for zhanghqJul 30 14:36:55 hessian01 sshd[61868]: Failed password for zhanghq from 192.168.2.176 port 42058 ssh2Jul 30 14:37:05 hessian01 sshd[61868]: Failed password for zhanghq from 192.168.2.176 port 42058 ssh2Jul 30 14:37:08 hessian01 sshd[61868]: Failed password for zhanghq from 192.168.2.176 port 42058 ssh2Jul 30 14:37:08 hessian01 sshd[61868]: Connection closed by authenticating user zhanghq 192.168.2.176 port 42058 [preauth]

用户登录

[Administrator.xxk-d4] ? ssh zhanghq@192.168.2.177zhanghq@192.168.2.177's password:zhanghq@192.168.2.177's password:zhanghq@192.168.2.177's password:Permission denied (password).

解决办法

UsePAM 配置

[root@hessian01 openssh-8.5p1]# tail -5 /etc/ssh/sshd_configPermitRootLogin yesPasswordAuthentication yesChallengeResponseAuthentication noUsePAM yes # 配置为 yesX11Forwarding yes

SELinux

[root@hessian01 openssh-8.5p1]# getenforceDisabled

参考

升级 OpenSSH 7.9

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。