10-11-2005, 08:26 AM
|
#2
|
|
Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,192
|
sftp uses the same port as ssh which is indeed 22.
However to connect to a port OTHER than 22 using sftp the ssh setup on the host you're trying to connect to must have been configured to use that other port. You'd need to contact whoever has control of the other host to find out the appropriate port if this were the case. (Do "man ssh_config" for details of configuration.)
Having said all that the way to specify the port with sftp is:
sftp -oPort=<portno> - Where portno is the number you want.
Example for port 37
sftp -oPort=37
|
|
|
|