casesgerma.blogg.se

Vnc through ssh tunnel
Vnc through ssh tunnel









vnc through ssh tunnel
  1. #VNC THROUGH SSH TUNNEL HOW TO#
  2. #VNC THROUGH SSH TUNNEL MAC OS X#
  3. #VNC THROUGH SSH TUNNEL PASSWORD#

While there seems little point in establishing the tunnel only to manually close it shortly after, it’s useful to know that it can be done and how to do it. If the tunnel is present the results will include a line of text similar to the highlighted line: 2234 ? 0:00.05 /usr/bin/ssh-agent -lĦ455 ? 0:00.00 ssh -f -L 15548:127.0.0.1:548 -L 15900:127.0.0.1:5900 sleep 60Īt this point the SSH tunnel could be manually closed by terminating the process. The presence of the tunnel can be confirmed by typing: ps -ax | grep ssh Now that the SSH tunnel is established and having specified a sleep parameter of 60 we have only 60 seconds to make a connection to the remote computer before the tunnel disappears.

#VNC THROUGH SSH TUNNEL PASSWORD#

You’ll be prompted with the warning: Warning: Permanently added 'hostname,12.345.67.890' (RSA) to the list of known hosts.Įnter the password for the user on the remote computer you’re logging in as and press enter.

vnc through ssh tunnel

RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.Īre you sure you want to continue connecting (yes/no)? The first time the SSH tunnel is established you’ll be prompted with: The authenticity of host 'hostname (12.345.67.890)' can't be established.

vnc through ssh tunnel

The sleep option will not work when the -N option is included in the ssh command as this option disables remote commands. Sleep 60 will terminate the tunnel after the allotted time, in this case 60 seconds, but only if there’s no active connection. My example uses two port:host:hostport parameters each proceeded by the -L option. Using a privileged port, 1024 or below, on the local computer requires the use of sudo. For information on assigning a static hostname to a dynamic IP address see Resolving a Static Hostname to a Dynamic IP Address Using DynDNS Free.ġ5548:127.0.0.1:548 is the port:host:hostport parameter where port is the port on the local computer to be forwarded to the given port on the remote computer, host is the localhost on the remote computer and hostport is the port on the remote computer. Hostname is the remote computer’s IP address or name. User is the login name on the remote computer.

#VNC THROUGH SSH TUNNEL MAC OS X#

To create the SSH tunnel using the Mac OS X Terminal application open Terminal in the /Applications/Utilities/ folder on the local computer. Using Mac OS X Terminal to Establish the SSH Tunnel











Vnc through ssh tunnel