[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: blocking ssh Root Logins



On Monday 21 March 2005 12:33 pm, Martin McCormick wrote:
>  Is there a way to configure either sshd or the login
> configuration files to totally prevent root logins so that one must
> log in as themselves and su - to root?
>
>  I know of one Debian system and one Redhat system that I would
> feel a lot better about if one could log in only as one of the users
> and then su to root.  Thank you.

Yes, according to "man sshd_config", you can disable root login by editing 
the /etc/ssh/sshd_config file.  If you see "PermitRootLogin Yes" change the 
yes to no.  If you don't see it, add the line, but with a "no".  It's 
possible the line could be commented out (the default is to permit).

There are a number of man files for ssh, including sshd and the config files.  
Don't forget there are man pages for config files as well as for the 
programs.

Hal

>
> Martin McCormick WB5AGZ  Stillwater, OK
> OSU Information Technology Division Network Operations Group



Reply to: