有人停用了用户的远程登录,我想重新激活它。但我可以通过 su 进入。但是,我不知道如何重新激活登录。我检查了 /etc/ssh/sshd_config,但没有“允许用户”部分。我检查了 PAM,但也没找到任何东西。
有任何想法吗?
答案1
passwd -u 用户名
可能该用户已被锁定。
答案2
您的意思是目前没有 AllowUsers 指令,因为它看起来像您想要的:
http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html