Re: Tunneling to a third host



unfortunately this will not work since none of the machines have a
telnet server running. the gateway computer only has ssh server and
port 22 open. so i need to ssh into that box.

any other ieads?


Richard E. Silverman wrote:
"SJ" == SnakeyJakey <tom.jacobs@xxxxxxxxx> writes:

SJ> i am on a windows box using ssh.com's ssh client (will call it
SJ> client). my linux box (host) at work does not have a open port to
SJ> the internet but another linux box (gateway) on our network
SJ> does. i can ssh into this box and then from that terminal ssh into
SJ> mine. i have a vnc server running on host

SJ> what i want to do is forward port from client through gateway to
SJ> host so i can vnc directly from client to host. theport the vnc
SJ> server is running on is 5901 and the port i will use on client is
SJ> 5902.

SJ> to add addition problems i have a different username for each box.

SJ> using my ssh clients command window in windows, ssh2.exe, i have
SJ> tried the following:

SJ> ssh2 -L 5902:host_user@host:5901 gateway_user@gateway

SJ> this asks me for my gateway username and appears to log me into
SJ> this. no pass for host_user is asked for and it appears that no
SJ> ports have been forward, atleast not to host. is there anyway of
SJ> telling in linux if ports have been forwarded?

telnet localhost 5902

The "host_user@" should not be there; there is no authentication involved
in making a TCP connection. VNC will run on top of that and do whatever
authentication is needs to.

--
Richard Silverman
res@xxxxxxxx

.



Relevant Pages

  • Re: [SLE] tunneling through an intermediate host
    ... SSH to the gateway as usual, setting up a forwarded port to ... >> enable X forwarding on this first connection since it doesn't ... >> sound like you're actually running anything X from the gateway. ...
    (SuSE)
  • Re: Tunneling to a third host
    ... so i need to ssh into that box. ... TCP connection to the locally forwarded port. ... SJ> i am on a windows box using ssh.com's ssh client (will call it ... SJ> the internet but another linux box (gateway) on our network ...
    (comp.security.ssh)
  • Re: [SLE] What is port "BBN IAD"?
    ... > request which is the first part of any TCP connection. ... Perhaps, but that is the source port, so that is uninteresting. ... local server running, and that IP does look like your gateway. ...
    (SuSE)
  • Port forwarding and ssh
    ... I have a simple adsl router and gateway on the configuration i can allow ... ssh the machine from outside i have this answer: ssh: connect to host ... toto.homeip.net port 22: Connection refused. ...
    (Fedora)
  • Re: Tunneling to a third host
    ... my linux box (host) at work does not have a open port to the internet but ... another linux box (gateway) on our network does. ... and then from that terminal ssh into mine. ... what i want to do is forward port from client through gateway to host so i ...
    (comp.security.ssh)

Loading