Changing the Default SSH Port
Overview
The OpenSSH service for version 3.x of SFTP Gateway is located on port 2222
by default. However, some users may wish to move the OpenSSH service to that of a different port, which we will show how to do in this article.
Changing the SSH Port
First, SSH into your VM and elevate your privileges:
sudo su
Then, edit this file:
/etc/ssh/sshd_config
To change the ssh port you would modify this line:
Port 2222
To apply your changes, you would restart OpenSSH:
service sshd restart
Also, make sure the port you change to is allowed access in your firewall rules.