up vote 1 down vote favorite
share [g+] share [fb]

I use

ssh -D 1080 myhost.org

...to open up an SSH tunnel from my work machine to my home machine, so as to bypass the idiotic content filter on the corporate firewall. However this also creates an interactive SSH session that lives the whole time I'm using the tunnel. Is there any way to tell SSH just to create the tunnel and not bother with the interactive session?

link|improve this question

56% accept rate
feedback

3 Answers

up vote 1 down vote accepted

Seems like you want the -N flag.

ssh -D 1080 -N myhost.org
link|improve this answer
It's recommended to use -fnN in conjunction. – o_O Tync Nov 26 '09 at 1:46
feedback

from ssh manpage:

 -N      Do not execute a remote command. This is
         useful for just forwarding ports (protocol version 2 only).
link|improve this answer
feedback

ssh -ND 1080 @myhomemachine.com

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.