View previous topic :: View next topic |
Author |
Message |
bigbob73 Guru
Joined: 31 Dec 2004 Posts: 332 Location: Under the Lone Star
|
Posted: Fri Jan 06, 2006 3:08 am Post subject: sftp port number [solved] |
|
|
How do I change the port that sftp is listening to? I have sshd set up to use port > 2000 and would like to do the same with sftp.
Bigbob _________________ A computers attention span is only as long as it's electrical cord (Murphy)
Last edited by bigbob73 on Fri Jan 06, 2006 4:00 am; edited 1 time in total |
|
Back to top |
|
|
gctaylor n00b
Joined: 20 Nov 2004 Posts: 40
|
Posted: Fri Jan 06, 2006 3:27 am Post subject: |
|
|
I'm pretty sure that sftp listens on the same port that the ssh daemon is listening on. To be more accurate, sftp uses the ssh daemon and opens an additional channel for file transfer. Just curious if you've tried to connect with sftp using port 2000? You'd have to change the client sftp command line to connect to the non-standard port. Something like:
Code: |
sftp -oPort=2000 user@servername
|
|
|
Back to top |
|
|
bigbob73 Guru
Joined: 31 Dec 2004 Posts: 332 Location: Under the Lone Star
|
Posted: Fri Jan 06, 2006 3:59 am Post subject: |
|
|
gctaylor wrote: | I'm pretty sure that sftp listens on the same port that the ssh daemon is listening on. To be more accurate, sftp uses the ssh daemon and opens an additional channel for file transfer. Just curious if you've tried to connect with sftp using port 2000? You'd have to change the client sftp command line to connect to the non-standard port. Something like:
Code: |
sftp -oPort=2000 user@servername
|
|
this last line worked. I'm using psftp (putty).
code: psftp -P port user@servername
Thanks for the tip.
Bigbob _________________ A computers attention span is only as long as it's electrical cord (Murphy) |
|
Back to top |
|
|
|