Have you tried ssh tunneling? ssh -lxyz -v -C -L 8080:localhost:8080 remoteHost1 This will connect you to remotehost1 and forward any local connection on port 8080 to a connection on the remotehost1 port 8080 you can also set a 2 way ssh tunnel: http://fixunix.com/ssh/443096-howto-setup-two-way-ssh-tunnel.html#post1289281