If you’re looking to secure ssh on your dedicated web server, here are the steps that you need to follow to get your web server secured.
You need to login into your dedicated sever with root access. As you know the default port number of a web server is 22, and this known by any person on the earth who knows about Linux web servers. Now, we will switch the default port number (22) of SSH to something random. This will prevent server login attempts done on the default port number. For this you’ll have to edit the sshd_config which can be done by the command – nano /etc/ssh/sshd_config now find the line #Port 22, uncomment it and replace 22 by some random port number.
You need to take care to add this random port number to your firewall allow list. If you fail to do so, you’ll NOT have access to the server.
Now, we will have to change the protocol in the sshd.config, so you can edit it again with the command – nano /etc/ssh/sshd_config and find the line #Protocol 2, 1 and change it to Protocol 2.
Remember to restart sshd daemon once you have saved the configuration file. Your dedicated server ssh is secured now!
This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.



