
1. Open & edit your sshd_config file with the new port.
vi /etc/sshd_config
port xx
2. Restart the sshd services
service sshd restart
3. Test the new port connection
sftp -oPort=xx user@host

1. Open & edit your sshd_config file with the new port.
vi /etc/sshd_config
port xx
2. Restart the sshd services
service sshd restart
3. Test the new port connection
sftp -oPort=xx user@host