Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sftp port number [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bigbob73
Guru
Guru


Joined: 31 Dec 2004
Posts: 332
Location: Under the Lone Star

PostPosted: Fri Jan 06, 2006 3:08 am    Post subject: sftp port number [solved] Reply with quote

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
View user's profile Send private message
gctaylor
n00b
n00b


Joined: 20 Nov 2004
Posts: 40

PostPosted: Fri Jan 06, 2006 3:27 am    Post subject: Reply with quote

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
View user's profile Send private message
bigbob73
Guru
Guru


Joined: 31 Dec 2004
Posts: 332
Location: Under the Lone Star

PostPosted: Fri Jan 06, 2006 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum