Archive

Posts Tagged ‘Server security SSH’

Dedicated server security : Disable Root SSH Access

June 1st, 2009 admin No comments

**** Use coupon whukharry to avail a great discount of 10% on every order you placed at http://www.webhosting.uk.com/

SSH root access to your server would be of great threat for your dedicated server. It will allow most hackers /crackers to get whole control of your server if they manage to break your root password which can create havoc for your server security. Hence as a precautionary measure you should create a separate account and just sudo to root whenever you want to access your server. You should create a regular user account and have permissions of su or sudo to root for that user, you will have to add it under /etc/sudoers.
Now you will have to edit the ssh_config file which is most important and main configuration file for the sshd service.
Login to your server as root then open above configuration file using : -
vi /etc/ssh/sshd_config
In the above file just locate section called “PermitRootLogin” and make sure it have : – PermitRootLogin no which will ensure that root SSH access is
disable for your server now save the file and restart sshd services
using /etc/init.d/sshd start

That’s all done, your Dedicated Server is safe and secure and no one can have direct root access for your server.

UK Dedicated Server Hosting