How can I modify my sshd_config so that it blocks access to all users except the root user?
I've had a look and I tried
AllowUsers root
DenyUsers *
But that doesn't do anything
|
How can I modify my I've had a look and I tried
But that doesn't do anything |
|||||||
|
|
I tried this myself, adding only the |
|||
|
|
|
If you're using Linux, you can use the pam_succeed_if.so PAM module (if your distro has it). Other OSes may or may not have it so YMMV. in /etc/pam.d/sshd:
You can also allow specific groups, or numerical uids/gids, etc. See http://linux.die.net/man/8/pam_succeed_if for more information on this PAM Module. |
|||
|
|