Re: Tunneling to a third host
- From: Chuck <skilover_nospam@xxxxxxxxxxxxxx>
- Date: Mon, 03 Jul 2006 15:54:48 GMT
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. theport the vnc server is
running on is 5901 and the port i will use on client is 5902.
to add addition problems i have a different username for each box.
using my ssh clients command window in windows, ssh2.exe, i have
tried the following:
ssh2 -L 5902:host_user@host:5901 gateway_user@gateway
this asks me for my gateway username and appears to log me into this.
no pass for host_user is asked for and it appears that no ports have
been forward, atleast not to host. is there anyway of telling in linux
if ports have been forwarded?
if anyone could suggest the correct command to achieve what i want that
would be great
I don't think you need the "host_user@" portion. Just do
ssh -L 5902:host:5901 gateway_user@gateway
Then point your vnc client to localhost:5902 and it should work.
.
- Prev by Date: setting up and accessing a remote windows server
- Next by Date: Re: How to specify identity with forwarded agent?
- Previous by thread: setting up and accessing a remote windows server
- Next by thread: Re: How to specify identity with forwarded agent?
- Index(es):
Relevant Pages
|
|