Disable Root Login via SSH in Linux system

In a linux system it is a problem when anyone trying to login as root from a remote terminal. There is an easy way to disable a person to login into system using a remote terminal as root.

1. login to the system

2.open terminal

3. su – or sudo

4 vim /etc/ssh/sshd_config

or open the file sshd_config in the /etc/sshd directory

5 .find line PermitRootLogin yes

change it to PermitRootLogin no

6 . Restart the service

/etc/init.d/sshd restart

this will ensure a little more security to your server .

Nice !!

No Comments

Leave a Reply


%d bloggers like this: