Pages

Monday, June 17, 2013

Prevent Root Login on Linux

Scenario:
            Block the root login on Linux Machines through SSH ports.

Solution:
            Run the grep "PermitRoot" /etc/ssh/sshd_config command let you know the status of block / open.
 If the value is no then blocked,
PermitRootLogin no    ==> Can't perform root login thru SSH
PermitRootLogin yes  ==> Can able to perform root login directly through SSH Client / Putty.


Note:
  •     Eventhough root account is blocked, you can still login with other account and use su - root command to switch to the root account.
  • Still you can use VSphere client to login to the machine using root account.


No comments:

Post a Comment