Re: Tunneling to a third host
- From: "Richard E. Silverman" <res@xxxxxxxx>
- Date: 28 Jun 2006 19:49:42 -0400
"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
.
- References:
- Tunneling to a third host
- From: SnakeyJakey
- Re: Tunneling to a third host
- From: Richard E. Silverman
- Re: Tunneling to a third host
- From: SnakeyJakey
- Tunneling to a third host
- Prev by Date: Re: Tunneling to a third host
- Next by Date: Re: Tunneling to a third host
- Previous by thread: Re: Tunneling to a third host
- Next by thread: Re: Tunneling to a third host
- Index(es):
Relevant Pages
|
|