On Wednesday 13 July 2005 13:45, Jay Paulson wrote:
I totally agree!! I just need to figure out exactly how to do it. I know it has to do with ssh -L but I'm not sure on it after that. I've tried but not understanding what it is doing it's like trying to find water when you are blind.
OK, lets try to explain with basic terms how the tunneling works: I'll call your work machine mac, and your home machine - suse. The simplified command in general is: ssh -L port:host:hostport where: port - this is the local port on the machine you start ssh client - your mac. ssh will open this port and start listen for connections on it. If some program (your vnc viewer) makes a connection, then the traffic is forwarded. host - the machine which should accept the connection. NOT the ssh connection, the tunneled one. I.e. this is a machine at the other end of the tunnel - it may be the machine to which you created the ssh session, or any other machine on that network. So, for your situation the value for this param should be "localhost". This is localhost by point of view of the receiving end of the ssh connection (suse). hostport - this is the port on the host (look above), to which to redirect the connection. Now, a little example, which does not solve your problem, but will explain how it works: work> ssh -L 11111:home2:22222 home1 What happens is: ssh connection is established from machine work to machine home1. ssh client starts to listen for connections on port 11111 on machine work. If a program connects to this port on machine work - this traffic is going to be encrypted and send to machine home1. there it is decrypted, and connection to port 22222 on home 2 is established. Now in order to solve your problem, from the mac machine start ssh session to your suse machine: mac> ssh -L 5901:localhost:5901 suse This will open local (mac) port 5901 and will forward all connections to local (suse) port 5901 on suse. Now, I do not know what is the vnc client on mac, but there should :) be a way to tell it to what server:port, or server:window to connect. Just, instead to tell it to connect to suse, tell it to connect to localhost (mac). This should do it. Aaaa, I have no brakes :), long huh? Cheers Sunny