Re: Tunneling to a third host



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.
.



Relevant Pages

  • Re: Any known issues withsp2 and non-sp xp ics?
    ... Default Gateway: none ... DNS Server: 192.168.0.1 or your ISP's DNS server ... as my isp is configured to use DHCP (Dynamic Host ... After doing the above changes to the client, ...
    (microsoft.public.windowsxp.network_web)
  • Re: setting up RD without a VPN connection ?
    ... Remote Desktop only needs TCP Port 3389. ... > The PC in Brazil (the host) is connected via radio internet connection. ... The client cannot connect to the host. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Any known issues withsp2 and non-sp xp ics?
    ... I havent uodated host with sp2 yet, but disabled LAC and couldn't enable it. ... Ok LAC on host didnt have gateway and dns, so i put the ones you ... And properties of Client, which is LAC5 now,which i couldn't enable ...
    (microsoft.public.windowsxp.network_web)
  • Re: UDP Client Problem
    ... If library you use don't return you peer host IP/port that mean that you ... On return it doesn't automaticaly has the source ip and port (that what i ... mentioning the client port and ip in my server code but still i am getting ...
    (microsoft.public.win32.programmer.networks)
  • RE: application for an employment
    ... scanned a publicly available host. ... First off, I put "port scan" in quotes, meaning that, in concept, the two ... attempt to create a 1:1 equality between client connects and a port scan. ... Rights are rights. ...
    (Security-Basics)