Knowledgebase: Dedicated Servers
How do I change the default SSH port?
Posted by Help Desk (6), Last modified by NOC Desk Monitors on 07 August 2018 11:43 AM
Important: make sure the port you wish to use is opened on your firewall before changing the port number !!!

  1. Login to shell as root.
  2. Use any preferred editor to edit the file /etc/ssh/sshd_config
  3. Search for Port option, uncomment it and change the port number.
  4. Save the changes and close editor.
  5. Make sure that the port is opened in firewall and restart the firewall.
  6. Restart sshd service with following command:
    service sshd restart
Now SSH should be running on the non-default port you specified.


(0 vote(s))
Helpful
Not helpful