Re: Tunneling to a third host
- From: Augustus SFX van Dusen <ASFXvD@xxxxxxxxx>
- Date: Thu, 29 Jun 2006 01:10:24 GMT
On Wed, 28 Jun 2006 02:11:05 -0700, SnakeyJakey wrote:
i am on a windows box using ssh.com's ssh client (will call it client).
my linux box (host) at work does not have a open port to the internet but
another linux box (gateway) on our network does. i can ssh into this box
and then from that terminal ssh into mine. i have a vnc server running on
host
what i want to do is forward port from client through gateway to host so i
can vnc directly from client to host.
This sounds very similar to what I am doing. On the client box I do the
following (using your notation):
ssh -fngT -L 3022:host:22 -C gateway ping -i 30 localhost
In this client box I have a .ssh/config file (I am running OpenSSH) with
the following entries:
Host gateway
HostName xx.xx.xx.xx
HostKeyAlias gateway
User UsernameOnGateway
Port 2222
Host host
HostName localhost
HostKeyAlias host
User UsernameOnHost
Port 3022
In my case, gateway (which has an external IP address represented as
xx.xx.xx.xx here) listens for incoming ssh connections from the external
world on port 2222, and for incoming connections from the internal LAN on
port 22.
Thus, if I am logged in to the client box on the account where I have
this setup (and assuming that I have installed my public keys correctly in
the relevant accounts in gateway and host) after issuing the command
ssh host
I automatically get an interactive shell at host.
I am not sure if this addresses what you have in mind, but I hope that it
helps anyway.
.
- References:
- Tunneling to a third host
- From: SnakeyJakey
- Tunneling to a third host
- Prev by Date: Re: Tunneling to a third host
- Previous by thread: Re: Tunneling to a third host
- Next by thread: How to specify identity with forwarded agent?
- Index(es):
Relevant Pages
|
|