Wednesday, September 3, 2014

[Quick Tips] : how to deny root ssh access in linux server

how to deny root ssh access in linux server

how to deny root ssh access in linux server
For security point of view we generally restrict root direct ssh access in server.But keep in mind you also must have user who can access the server other than root.
So before doing this practical ,check if you have access to server with other user or else create a new user with password.
OK, now restrict the root from ssh follow the given below steps
Step 1 : Take the backup of sshd_config file
Step 2: Edit the sshd_config file and search for keyword PermitRootLogin
Bydefault PermitRootLogin is yes. Change the PermitRootLogin yes to no
Step 3: After this change restart the ssh service.
Now you can check it, use command ssh root@server-ip-Or-FQDN

No comments: