try this guide: http://archives.erdelynet.com/ssh-l/2003-08/msg00016.php
On Thu, 2003-08-21 at 12:35, Alvaro Zuniga wrote: > Hi John: > I use this for five machines behind a firewall. What I did a while back when > you introduced me to to tightVNC, was to forward a port for each machine from > the firewall. Then for the ssh command I do `ssh -L 5901:machine_ip:5901 > firewall_ip` where the machine_ip is not firewall_ip, ofcourse :-) After > that, I just launch VNC and connect to the localhost:port address which is > now tunneling the connectioon. > > That works for me. I think the difference is the -R in your command. > > Take care, > > Alvaro Zuniga > > > On Thursday 21 August 2003 07:04 am, John Hebert wrote: > > I need to vnc over ssh to a machine behind a firewall. I can run: > > > > ssh -R 5900:ipaddressoftargetPC:5900 [EMAIL PROTECTED] > > > > on the target machine and it successfully causes myhomefirewall to listen > > on port 5900 and forward that traffic to ipaddressoftargetPC behind the > > target PC's firewall. > > > > I know this because I can ssh to myhomefirewall and do: > > > > telnet localhost 5900 > > > > and I get back traffic from the vnc server running on the target PC. > > > > However, what I want to do is run a vnc client on a machine behind > > myhomefirewall and connect to the target PC. How would I do this? The > > machine myhomefirewall is an OpenBSD box, so I'm suspecting I need to > > change pf.conf, though one the other hand, it seems I should be able to > > connect via ssh to myhomefirewall and some how get to port 5900 on the > > target PC. ??? > > > > I tried a number of different methods on the third machine but now my brain > > is a little fuzzy. Can anybody hit me with a cluebat? > > > > Thanks, > > John Hebert > > > > _______________________________________________ > > General mailing list > > [email protected] > > http://brlug.net/mailman/listinfo/general_brlug.net > > > _______________________________________________ > General mailing list > [email protected] > http://brlug.net/mailman/listinfo/general_brlug.net
