How to Secure Linux Server: disable root login, enable sudo
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
Popularity: 1%


















































