PrintLogo

Configuring Root Access for SSH




Most systems these days disable root access for good reasons. To change this setting, look in:

/etc/ssh/sshd_config 

Of course, your location may be different. To enable root access change this line:

 
PermitRootLogin yes 

To disable root access change this line:

PermitRootLogin no 

For the changes to take effect, restart sshd:

[root@srv-1 ssh]# /etc/init.d/sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]
[root@srv-1 ssh]#





This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art495.html

Copyright 1997-2008 NetAdminTools.com. Read our Terms of Use.