Portal Home > Knowledgebase > Technical Questions > How can I change my SSH port?

How can I change my SSH port?

You can change your SSH port by simply logging in to your VPS and then opening up the SSH daemon configuration file and adjusting the port number there and then restarting.

Please follow these steps:

1. Open the SSH daemon configuration file for editing: nano /etc/ssh/sshd_config
2. Find the line with "# Port 22"
3. Remove the pound sign (#) in the beginning and then change 22 to another number.
4. Press CTRL+X and then Y to save the changes.
5. Restart your SSH daemon: service sshd restart
Was this answer helpful?
Kubernetes support on VPSDime Services

Full-stack k8s Kubernetes is not supported on our Linux VPS plans, as with the OpenVZ 7...

My VPS is using too much memory. What's wrong?

It probably isn't. You may be reading it incorrectly. Please refer to http://www.linuxatemyram.com/

Unable to launch Docker swarm due to br_netfilter messages

When receiving the following message:"error creating external connectivity network: cannot...

ufw is not starting and returning nf_conntrack_ftp module not found

You may receive the following error message while trying to enable ufw (ufw enable):ERROR:...

How can I enable NFS?

To enable NFS on your VPS, you can simply open a ticket with us and we'll handle the rest.