SSH Tunneling Scripts
Richard Caley, 8th April 2001

These scripts use ssh to tunnel services through firewalls.

VNC (Virtual Desktops)

A VNC desktop may be running on a machine beyond a firewall. If you can ssh to the firewall, this script will allow you to connect to the desctop machine. Run as

	tunnel_vnc gateway.machine:desktop.machine:N
or, if the desktop is on the firewall,
	tunnel_vnc desktop.machine:N

Notes:

  • The desktop number, `N' in the above examples, is used to select a tunneled port.

DXPC (X Compression)

To use this script you must install the dxpc protocol compresion program on local and remote machines. The script exports your local display (from the $DISPLAY variable) and makes it available as display unix:N on the remote machine. Use:

	tunnel_dxpc remote.machine:N
to kill the connection run:
	tunnel_dxpc -kill remote.machine:N

Notes:

  • The screen number, `N' in the above examples, is used to select a tunneled port.
  • I _think_ this is consistantly more responsive than using vnc.
  • I run a tunnel from my .xinitrc and kill it when I exit X. This way I have a compressed link to the remote machine at all times.

Richard Caley / SSH Tunneling / 8th April 2001