How to Secure Linux Server: disable root login, enable sudo

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

The following steps will make your Linux server more secure:

1, Edit sshd_config to disable root login.

vi /etc/ssh/sshd_config

make sure you have this line:

PermitRootLogin no

2, Change sshd port number to something other than 22, e.g.,

Port 1234

3, Make sure somebody can do su or sudo:

vi /etc/sudoers

add my name to sudo list:

bobsmith ALL=(ALL) ALL

4, Restart sshd

service sshd restart

Technorati : ,
Del.icio.us : ,

Popularity: 1%

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word