Twitter Facebook Google+ LinkedIn

Steps to Change SSH Port of a Server

Port 22 is the default port used by a Linux SSH Server (Open SSH). This is not just known to the server administrators but the hackers and attackers as well. Well incase you have implemented different security measures for your web hosting UK server, then it may not be a concern for you. However, changing the port of your SSH can add to the security of your server.

Changing the default port 22 to something else on your hosting server can be something like preventing the hackers from accessing your server from the front door. Though you should note that this process would not make your server 100% safe from intrusion, but it can definitely keep professional hackers busy with finding other vulnerabilities on the server. Plus it would enhance the SSH Security of Server.

How to change the SSH port of a Linux Hosting Server ?

Step 1 : Login to your server as Root

Step 2 : Look for the sshd_config file (it can be found in /etc/ssh directory) and edit itCloud Hosting

vim /etc/ssh/sshd_config

Step 3 : Search for a line that has :

Port 22

Step 4 : Amend the port number with something of your preference.

Note : You must ensure that the new port number is free and isn’t used by any other service.

Step 5 : Once you are sure about the changes, make sure that you Save the file

Step 6 : You may then restart sshd using the following command :

/etc/init.d/sshd restart

Step 7 : Make changes to the firewall with blocking Port 22 and allowing the new Port number used by SSH.

Like this post ?

Share on your Social Networking Profile ( Facebook, Twitter & Google+ ) and get a flat 10% Recurring discount on our VPS Hosting and Dedicated Servers.

Email us the shared link at : sales@eukhost.com or speak to our live chat operator now, by clicking on the “Live Chat” Scroller on the left-hand side of this page and we will provide you with the discount Coupon right away!

Be Sociable, Share!


    Online 24X7 Chat Support
     
     
    Telephone
    Toll Free
    Online chat
     
    Online 24X7 Email Support
     
    Emails
     
     
     
    Support
    Support email
    sales
    Sales email
     
    Billing
    Billing email
     
       
    Latest Tutorials & Articles (Updated Daily)
    http://blog.eukhost.com
      Forums :
    http://www.eukhost.com/forums/