SSH trickery using -R
From: Dan Trainor (info_at_hostinthebox.net)
Date: 06/30/05
- Previous message: Robby Tanner: "RE: Kernel Compiling"
- Next in thread: Deron Meranda: "Re: SSH trickery using -R"
- Reply: Deron Meranda: "Re: SSH trickery using -R"
- Maybe reply: STYMA, ROBERT E (ROBERT): "RE: SSH trickery using -R"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Jun 2005 15:27:56 -0700 To: For users of Fedora Core releases <fedora-list@redhat.com>
Hello, all -
Reading through ssh's man page, I found the -L and -R switches. I've
used -L before, but not -R. -R looks... very interesting.
So what I'd like to be able to establish is a connection to a machine
which is behind a NAT and, well, a whole bunch of network goodies, which
makes it not possible to connect directly to this machine from the
"outside".
>From what I understand by reading the man page, is that I can make an
ssh connection to a remote machine, using the -R switch, which opens a
port on the remote machine, which is then redirected to the local
machine, on a port of my choosing.
So naturally, I'd like to do something like this - from the client:
ssh -l username -R 22:localhost:10002 remotehost
I am able to log in to remotehost. I've even used root as the username
just for kicks, but I am then presented with the following error regardless:
Warning: remote port forwarding failed for listen on port 22
What I can make of this is, I believe, a conflict with sshd. I would
want the connection to be made TO the local port 22.
Am I understanding the manpage wrong? Is my syntax wrong? What's the deal?
Thanks!
-dant
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: Robby Tanner: "RE: Kernel Compiling"
- Next in thread: Deron Meranda: "Re: SSH trickery using -R"
- Reply: Deron Meranda: "Re: SSH trickery using -R"
- Maybe reply: STYMA, ROBERT E (ROBERT): "RE: SSH trickery using -R"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: GUI firewall
... > session you are logged into on the remote machine (the machine to ... >
you a different desktop than a connection to:0. ... You should try firestarter its
got a very easy to use gui. ... Click Open Ports right click and select New Rule and add
the port you ... (Fedora) - ssh port forwarding and long delays
... local port 5110 which it tunnels to port 110 on the remote machine and ... local
5025 which it tunnels to 25 on the remote machine. ... connection to the
remote machine get's established just fine and I get ... (comp.security.ssh) - Re: Sharing a com port across a network
... on the machine with the COM port with which a remote machine could ... >that
connects to a cutting machine via the COM port. ... The machine the cutter ...
>but rather the software actually looks for the connection at the com port ... (microsoft.public.windowsxp.hardware) - Re: GUI firewall
... you are logged into on the remote machine. ... port 5901 is a virtual
X11 desktop started by the vncserver service in ... a different desktop than a connection
to:0. ... (Fedora) - Re: Connecting two switches with auto-uplinks?
... I have successfully connected auto uplink switches together without any ...
> port on the second switch can be connected to any port on the first and a ... >
connection will be made. ... > * PLEASE post all messages and replies in the
newsgroups ... (microsoft.public.win2000.networking)