+ Reply to Thread
Results 1 to 4 of 4

Thread: change the default SSH port 22

  1. #1
    HWHT Starter thewebhostingdir is on a distinguished road
    Join Date
    Dec 2007

    change the default SSH port 22

    You can change the default SSH port 22 of your server in order to make people difficult to access your server. Port 22 is a standard OPENSSH port on Linuxservers. However, if you wish then you can change this number to some non-standard port by following below steps:

    1. Open /etc/ssh/sshd_config file
    2. Look for line Port 22 and change the new port number.
    3. Restart sshd server.

    Hope this will be helpful.

  2. #2
    SuperExpert Keuzeserver is on a distinguished road
    Join Date
    Sep 2005
    Great, thanks I will try this straight away
    Terms Of Service

    Read before you post a new question!

  3. #3
    Hosting Guru cornflakes is on a distinguished road
    Join Date
    Mar 2007
    Nice instruction.

  4. #4
    HWHT Starter GridVirt is on a distinguished road
    Join Date
    Jun 2012
    A few things that should be mentioned with this as well. Make sure you uncomment the port like for ex. #port 22 should look like port 22 or whatever port you change it to. Also after you restart sshd try and connect to the new port using a new sshd session DON'T close your current session. If you cannot connect to the new port with the new ssh session it means there is a problem. If you would have closed the old session you would be locked out of your server! Also a port above 1024 is the preferred choice when choosing a new port.

+ Reply to Thread

Similar Threads

  1. Should I change this page?
    By Just199-Dave in forum SEO Tools and Software Utilities
    Replies: 0
    Last Post: 10-02-2007, 06:05 PM
  2. HTTP server (port 80) is down?
    By xammy in forum HCC-Announcements, HCC-Feedback, HCC Questions
    Replies: 2
    Last Post: 07-06-2006, 08:43 AM
  3. how to change nameserver?
    By plachira in forum DNS
    Replies: 3
    Last Post: 05-30-2006, 05:30 AM
  4. How often do you change your hosting plans?
    By SERVEREMPIRES in forum Reseller Hosting Forum
    Replies: 14
    Last Post: 03-23-2006, 09:01 AM
  5. Allow SMTP through port 26
    By incript_services in forum Web Hosting Tutorials
    Replies: 3
    Last Post: 09-19-2005, 06:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts