How do I change my SSH port?

In this tutorial, we will demonstrate how to change your SSH port using the Serial Console in our portal.

  1. Visit Services

  2. Click on your VPS from the list of Services

  3. Click on HTML 5 Serial Console (screenshot)

  4. Click on Create Session (screenshot)

  5. Type the following, and press ENTER: sed -i 's/8145/22/' /etc/ssh/sshd_config (screenshot)
    This will change your SSH port from 8145 to 22

  6. Type the following, and press ENTER: service sshd restart (screenshot)
    This will restart the OpenSSH service


You should now be able to access your server on port 22

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

What Operating Systems do you offer?

We currently offer the below Linux distributions: CentOS 6 64-bit CentOS 7 64-bit CentOS 8...

What are my root user login credentials?

The username will always be root (by default), and the password is randomly generated. This...

Do you offer Reverse DNS/PTR records?

We certainly do! Reverse DNS / rDNS / PTR records can be set via our control panel, using these...

How do I reboot my server?

If you have SSH access and the server is still responding, you can log in as the root user and...

How do I enable TUN/TAP?

All of our VPS nodes have TUN/TAP support enabled. All you need to do is enable it on your VPS,...