Support Centre
Find the answers to your questions and get the support you need with the VentraIP help centre.
Browse by Popular
Domain Name
- What is a domain name?Eligibility criteria for registering .AU domain namesPremium domain names explained
Web Hosting
View AllEmail Hosting
View AllGoogle Workspace
- Getting Started with Google WorkspaceGoogle Workspace support resourcesTransferring an existing Google Workspace service to VentraIP
Account
- How do I reset my VIPcontrol password?How do I create a VentraIP account?How can I see who accessed my VentraIP account?
Troubleshooting
- How do I clear my browser cache?Troubleshooting a ‘500 internal server' errorTroubleshooting with a ping test
Changing the SSH port on your VPS
Before completing these steps, login to your VPS via SSH.
Changing the SSH Port
-
- Open the SSH configuration file in Nano by typing in this command:
nano /etc/ssh/sshd_config
- Navigate down the lines using your arrow keys, and un-comment the line in the file that says “#Port 22″.
- Use the backspace or delete key to remove the hash character.
- Change 22 to your desired port number.
- Then, exit Nano:
- Press Ctrl+X (Command+X on Mac) to quit.
- Then, press Y to confirm your changes
- Press the Enter key to confirm that the filename remains the same (do not change this).
- Restart the SSH daemon:
- On CentOS 6:
service sshd restart
- On CentOS 7 and Ubuntu 18+:
systemctl restart sshd
- On CentOS 6:
- Open the SSH configuration file in Nano by typing in this command:
Updating your firewall settings
If you have a firewall set up on the server, you will need to ensure that you adjust your firewall settings to allow for connections on the new SSH port.
If you have CSF installed (cPanel servers)
- Open the CSF config file
nano /etc/csf/csf.conf
- Look for the allowed TCP ports (approximately line 138).
- Use the arrow keys to navigate the cursor after one of the separating commas.
- Type in your new port number here and add a comma if there are any values after this.
- Press Ctrl+X (Command+X on Mac) to quit.
- Then, press Y to confirm your changes.
- Press the Enter key to confirm that the filename remains the same (do not change this).
- Restart CSF using the following command:
csf -r
If you’re using FirewallD (CentOS 7/8, Ubuntu 18+)
Note: In this example, the new SSH Port is 2222. Make sure you adjust the port number for your use case.
Please replace port=2222 with your new nominated port.
sudo firewall-cmd --permanent --zone=public --add-port=2222/tcp
sudo firewall-cmd --reload
We Are Here to Help You
Get in touch with one of our local experts at any time.