Re: Tunneling to a third host



"SJ" == SnakeyJakey <tom.jacobs@xxxxxxxxx> writes:

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

You completely misunderstand me. You will use the telnet client to open a
TCP connection to the locally forwarded port. You asked if there were any
way to tell if the port had been forwarded.

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


--
Richard Silverman
res@xxxxxxxx

.



Relevant Pages

  • Re: RDC port change
    ... As for the SSH, I use SSh myself and for my clients where I can. ... There is a mac client, ... remote control...... ... By the way lol, the problem with the RDC port is fixed, it seems.... ...
    (microsoft.public.windowsxp.work_remotely)
  • 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: Secure / Encrypt Terminal Services
    ... SSH port forwarding should work. ... Then connect with your SSH client. ...
    (Focus-Microsoft)
  • Re: Tunneling to a third host
    ... telnet server running. ... port 22 open. ... so i need to ssh into that box. ... SJ> the internet but another linux box (gateway) on our network ...
    (comp.security.ssh)
  • RE: question about x11 forwarding in ssh
    ... Locally, on both server and client, OpenSSH creates a connection to ... "X11DisplayOffset <port>" in your sshd_config file. ... question about x11 forwarding in ssh ...
    (SSH)