Re: What is the difference between local port forwarding (-L) and remote port forwarding (-R)
From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 04/28/04
- Next message: Darren Tucker: "Re: Accessing dynamically multiple VNC servers using SSH"
- Previous message: Ron Olsberg: "SSH without a "Username or Password"?"
- In reply to: Yann Laviolette: "What is the difference between local port forwarding (-L) and remote port forwarding (-R)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 28 Apr 2004 02:41:49 +0000 (UTC)
In article <d73d6e32.0404262310.5dd662ed@posting.google.com>,
Yann Laviolette <yann_laviolette@gnome.org> wrote:
>What is the difference between the bit -L and the bit -R. I've read
>the man of SSH on Fedora. It's seems to be simple but in practice, I
>don't understand.
Example: "ssh -L 2000:1.2.3.4:2000 server" is a "local" forward and will
listen on the client (ie the machine you ssh'ed from) on port 2000.
If something connects to the client on port 2000, a "channel" will be
opened inside the SSH connection and the server will connect to 1.2.3.4 on
port 2000. Any data sent or received will be forwarded over this channel.
In contrast, "ssh -R 2000:1.2.3.4:2000 server" is a "remote" forward,
which will cause the *server* to listen on port 2000, and any connection
arriving at that port will be forwarded over the SSH connection and the
client will connect to 1.2.3.4 on port 2000.
Same concept, different directions.
>Can somebody help me on this subject?
Also try http://www.openssh.com/faq.html#2.11
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Next message: Darren Tucker: "Re: Accessing dynamically multiple VNC servers using SSH"
- Previous message: Ron Olsberg: "SSH without a "Username or Password"?"
- In reply to: Yann Laviolette: "What is the difference between local port forwarding (-L) and remote port forwarding (-R)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|