Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2000 22:08:49 +0000 (GMT)
From:      Ali Alaoui El Hassani <961BE653994@stud.alakhawayn.ma>
To:        Peter Pentchev <roam@orbitel.bg>
Cc:        CrazZzy Slash <slash@krsu.edu.kg>, freebsd-security@FreeBSD.ORG
Subject:   Re: Ssh2, sftp port Numbers continue.....
Message-ID:  <Pine.SOL.3.96.1000903220427.5359A-100000@stud.alakhawayn.ma>
In-Reply-To: <20000904005915.A61559@ringwraith.office1.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
Dear All,

My wonder is that since sftp and ssh use the same port number 22. 
 
So how do they get dispatched  at the level of tcp to the receiving
applicatons sftp and ssh of remote host ?

Ali.

On Mon, 4 Sep 2000, Peter Pentchev wrote:

> On Sun, Sep 03, 2000 at 08:32:25PM +0000, Ali Alaoui El Hassani wrote:
> > Dear All, 
> > Thanx to your help successfully installed ssh2. Now i am confused about
> > one thing. When I use ssh2 or sftp I see that they use the same port
> > number which is 22. Hum?, my question is:
> > How to distinguish between the two applications ssh2 and sftp?
> > is there anyway for me to assign sftp another port number, say 199 ?
> 
> Not unless you choose to run another instance of sshd listening on
> port 199.
> 
> sftp is not a separate service per se, it works by establishing an SSH
> connection (it requires that you login via SSH, or some kind of rhosts/shosts,
> but definitely some kind of SSH authentication), and then executing a server
> program on the side you are connecting to.  Actually, sftp *executes*
> the ssh client at the client side (which is why it has an option to pass
> ssh options, like an identity file and such), so it pretty much expects
> the client to have a server to connect to.
> 
> In theory, the SSH server could be recompiled so that it specifically does
> *not* allow execution of the sftp server, and placed to listen on port 22,
> and then a not-hacked version placed to listen on port 199, possibly made
> so it can *only* execute sftp.. but I, personally, do not really think
> it is worth the trouble.
> 
> G'luck,
> Peter
> 
> -- 
> This sentence contains exactly threee erors.
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-security" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.96.1000903220427.5359A-100000>