Restrict user login
I use Rh server , can advise if I want to restrict the root user can not directly login to the system ( eg. ssh -l root IP_address" , what can i do ?
Thanks. |
set PermitRootLogin to no in /etc/ssh/sshd_config and restart ssh.
|
Thanks reply ,
if I want to restrict user login through all kinds of method ( eg. ssh , telnet , rsh ) not just by ssh , can advise what can i do ? thx |
ahh then you want to actually do the job properly!! the permitrootlogin option is the usual favourite, but i recommend using /etc/security/access.conf instead to control things as a generic layer through pam, as this can match against any pam service name (amongst other things)
|
Can I also add that using a non-encrypted form of cxn like telnet or rsh is a really bad idea, not just for the root user.
However, good advice from acid_kewpie if you really have to use them. |
Quote:
|
All times are GMT -5. The time now is 11:35 PM. |