On Fri, May 20, 2005 at 10:57:49PM +0100, Wayne Stallwood wrote:
On Friday 20 May 2005 8:46 pm, Chris Green wrote:
Is there any simple way of restricting ssh logins to a system to prevent remote root logins?
I am actually a little shocked that this isn't the default setting for the ssh server on your distro. Go to (on my system at least, yours may vary in path) /etc/ssh/sshd_config and change or insert the following line.
PermitRootLogin no
Restart the sshd dameon and off you go, actually the way this is handled by ssh is that it will still appear to accept a root login attempt but reject even the correct password.
Thanks, you and the other reply, now done.