I currently have about 4 servers and I have always used root to login into SSH. But now I realize that its a security risk so what can I do to not login via root?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
migrated from stackoverflow.com Nov 20 '10 at 22:54
Then uncomment or add the following:
Then restart
|
||||
|
|
|
You can disable root logon in ssh_config in etc directory. If you are asking from client side, login on other username. |
|||
|
|
|
Look into If you want to do administrative tasks through ssh, you can still use If you want your ssh deamon to be even more protected, you can login using public-key authentication. In that case, deactivate logins using passwords by setting |
|||||||||
|
