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?
Error: Failed to detect code [xnxnxnx] in SYSLOG_LOG [/var/log/messages]

The root cause of the issue is a current known bug with the imjournal module for rsyslog that...

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

If you see a message like the below when you are trying to connect to your VPS using SSH, it's...

Docker requires br_netfilter. How can I load this module?

br_netfilter module is already enabled on your VPS.There's a couple of different things you can...

Why can't I clear RAM cache or buffers on Linux VPS?

You do not need to clear your RAM cache. Linux has many decades of excellent memory management...

Can I run Docker on my VPS?

Docker is fully supported for our Linux VPS and Premium VPS plans.It has been enabled by default...