#!/bin/sh

if [ -z "$2" ] ; then
	echo "Usage: $0 <remotehost>:<display> <accelerating ssh user@host>"
else
	host=${1/:/:590}
	ssh -g -f -C -L 5954:$host $2 sleep 90
	vncviewer -encodings "copyrect hextile" localhost:5954
fi
