ssh -X username@hostname
echo $DISPLAY
ssh -f -n -L 2222:dirac.csr.utexas.edu:22 username@ssh.csr.utexas.edu sleep 100000You can replace dirac with whichever host you need to connect to, 2222 with some random port number (but don't change the 22), and 100000 with however long you want the tunnel to stay alive (in seconds).
ssh -X -p 2222 username@localhost