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?
|
feedback
|
migrated from stackoverflow.com Nov 20 '10 at 22:54
This question came from our site for professional and enthusiast programmers.
Then uncomment or add the following:
Then restart
| ||||
|
feedback
|
|
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 | |||||||||
feedback
|
|
You can disable root logon in ssh_config in etc directory. If you are asking from client side, login on other username. | |||
|
feedback
|