passwd 用户名 成功 但是crt连接不上
查看登录类日志,我们首先要看的日志为/var/log/secure或audit,然后辅助message日志一并分析
ssh无法登录 secure日志:User root from 172.16.0.1 not allowed because none of user's groups are listed in AllowGroups
然后就到/etc/ssh/sshd_config文件找是否有这个参数配置,果然在的,就给注释了
#AllowGroups sshers
重启ssh服务 service sshd restart