Nick
Jun 9th, 2009
Jun 9th, 2009
Using SFTP if the default ssh port is changed
Using SFTP if the default ssh port is changed
Usually if the SFTP is enabled in your server, it will try to use the default SSH port (port 22) even though the SSH service may be running on another SSH port (ie: port 2222).
In this case, the SSH port is running on 2222.
Since SFTP will attempt to connect to port 22, you will have to specify a non-default port for SSH connections so SFTP can issue a proper connection to the remote destination. You can accomplish this by running the following command.
#sftp -oPort=2222 root@Server-IP-address