Now I have been able to successfully accomplish this however the shell window needs to remain open for the tunnel to stay open. I of course have tried spawning the command to the background with "&" but this does not jive simply because when the tunnel is created it asks for the password for the remote server. Now I also have tried the -f flag for ssh but a command to run on the remote server needs to be given in order to allow the tunnel to fork into the background. I have tried issueing "cat -" to keep the tunnel open indefinately and this works sometimes but somewtimes does not.
Anyway here is the syntax I am using:
ssh -L 23:localhost:22 user@host.com
ssh -f -L 23:localhost:22 user@host.com cat -
My question is, is there a better way to start this tunnel and have it fork and stay open indefinately?



