Linux‎ > ‎SSH‎ > ‎

SSH Tunnel

ssh from the corporate workstation to homebox (hal.compute.info) then from home, enigma, ssh to localhost port 5000 command to run on the corporate box (assuming user tunnel exists on hal.compute.info)

$ /usr/bin/ssh -R 5000:localhost:22 -N -f tunnel@hal.compute.info

command to run from home computer

$ ssh -p 5000 localhost

To create a permanent tunnel put the following in /etc/inittab after passwordless ssh is setup from the corporate computer to enigma.

k1:2345:respawn:/usr/bin/ssh -R 5000:localhost:22 -N tunnel@hal.compute.info
Comments