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?
Control panel shows memory usage higher than my free -m. What gives?

Control panel shows the cached memory as used as well. Your free -m shows the actual result.To...

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.

OpenVPN fails to start. How can I resolve it?

If you cannot start OpenVPN on your VPS with Ubuntu 18.04, Debian 9 or CentOS 7 with the...

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...

Can I use Mailcow on Linux VPS?

Unfortunately, you cannot use Mailcow on Linux VPS line. Their maintainers have no interest in...