Re: tunnelling
From: Simon Tatham (anakin@pobox.com)Date: 03/05/02
- Next message: Matthias Wulkow: "Re: tunnelling"
- Previous message: Matthias Wulkow: "Re: tunnelling"
- In reply to: Matthias Wulkow: "Re: tunnelling"
- Next in thread: Matthias Wulkow: "Re: tunnelling"
- Reply: Matthias Wulkow: "Re: tunnelling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Simon Tatham <anakin@pobox.com> Date: 05 Mar 2002 11:28:52 +0000 (GMT)
Matthias Wulkow <trespassa@gmx.de> wrote:
> If I want to tunnel a ftp (ftp-control-port 21) connection I have to
> make a connection with ssh from my win98 machine port 21 to the ftp
> server I want to connect to, port 21 (normally).
`make a connection' is misleading language and I suspect it is this
which is confusing you.
What you're doing is telling your SSH client to _listen_ on port 21
of your local machine. Then you tell your FTP client to connect to
port 21 of your local machine. When a connection comes in, the SSH
client instructs the SSH server to make a connection to port 21 of
the _remote_ machine. Data your FTP client sends to your SSH client
is encrypted, sent down the existing SSH connection, and sent on to
the real FTP server.
> My question is, why should the ftp server accept my ssh connection
> to port 21? How does that work?
You're not making an SSH connection to port 21. You're making an FTP
connection to port 21 of your local machine (which is being answered
by your SSH client), and your SSH server is making an FTP connection
to port 21 of the FTP server.
Does that make any more sense?
-- Simon Tatham "loop, infinite _see_ infinite loop" <anakin@pobox.com> - Index, Borland Pascal Language Guide
- Next message: Matthias Wulkow: "Re: tunnelling"
- Previous message: Matthias Wulkow: "Re: tunnelling"
- In reply to: Matthias Wulkow: "Re: tunnelling"
- Next in thread: Matthias Wulkow: "Re: tunnelling"
- Reply: Matthias Wulkow: "Re: tunnelling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|