lsutiger
July 25th, 2008, 04:46 PM
Hi all!
I am trying to use VNC + SSH to remote into my computer at home. I have SSH listening to port 5970. I left VNC on the default (5900). I have the ports forwarded on my router correctly.
I am trying to use the -via option. EX:
vncviewer -via linux-1501@antec.homelinux.net linux-1501:1
linux-1501 is my computer at home. antec.homelinux.net is the FQDN. The port forwarding is working correctly as I can ssh into the computer.
My question is, how, in the string given to the -via option do I set the port number?
From the man page:
The environment variable VNC_VIA_CMD can override the default tunnel command of
/usr/bin/ssh -f -L "$L":"$H":"$R" "$G" sleep 20. The tunnel command is executed with the environment variables L, H, R, and G taken the
values of the local port number, the remote host, the port number on the remote host, and the gateway machine respectively.
I am a little lost on this part.
Thanx for any instruction.
I am trying to use VNC + SSH to remote into my computer at home. I have SSH listening to port 5970. I left VNC on the default (5900). I have the ports forwarded on my router correctly.
I am trying to use the -via option. EX:
vncviewer -via linux-1501@antec.homelinux.net linux-1501:1
linux-1501 is my computer at home. antec.homelinux.net is the FQDN. The port forwarding is working correctly as I can ssh into the computer.
My question is, how, in the string given to the -via option do I set the port number?
From the man page:
The environment variable VNC_VIA_CMD can override the default tunnel command of
/usr/bin/ssh -f -L "$L":"$H":"$R" "$G" sleep 20. The tunnel command is executed with the environment variables L, H, R, and G taken the
values of the local port number, the remote host, the port number on the remote host, and the gateway machine respectively.
I am a little lost on this part.
Thanx for any instruction.