[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [suse-security] about ssh tunnels (-R option)



On Friday 04 June 2004 00:22, Emiliano Sutil wrote:
> Hello,
>
> I´m trying to make inverse ssh tunnels to access the vnc server of a
> client machine.
>
> MYPC   ------------------->SSH server ---------------->PC
>
> vncserver - Internet --publicIP - PrivateIP -------  vncviewer
> 192.168.1.215			  192.168.0.200
>
>
> To do this I use this command:
>
> ssh -f -C -N -g -R 5910:192.168.1.215:5910 PublicIP (ssh server)
>
>
> My problem is that with this command the socket that listen on the SSH
> server is on the localhost interface 127.0.0.1 so
> If I connect to the ssh server and run vncviewer 127.0.0.1:10 I reach
> the vncserver on MYPC,
> but if  run from the PC machine vncviewer 192.168.0.200:10  I can´t
> connect because it does not accept connections to that interface at the
> 5910 port.
>
> finally, my question is that is it possible to allow the connection from
> de PC machine so I reach the vncserver in MYPC machine

You want to set up the ssh connection so that it forwards the REMOTE
port (5900) to your machine, and you probably don't want to run
the VNC Server in your machine.

-- 
_____________________________________
John Andersen

--
Check the headers for your unsubscription address
For additional commands, e-mail: suse-security-help@xxxxxxxx
Security-related bug reports go to security@xxxxxxx, not here