How to SFTP if the default ssh port is changed
Connecting to ... ssh: connect to host port 22: Connection refused Couldn't read packet: Connection reset by peer
Here the SSH port is changed to 2200 instead of 22. But SFTP tries to connect it with 22. In this case we can connect to SFTP with the custom SSH port by running the following command.
root@localhost/~$sftp -oPort=2200 root@
Connecting to ... root@ 's password: sftp>