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