SSH socks proxy tunnel without interactive session?
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?
Seems like you want the -N flag.
ssh -D 1080 -N myhost.org
from ssh manpage:
-N Do not execute a remote command. This is useful for just forwarding ports (protocol version 2 only).
I've typically found this to be better because it not only stops listening to commands, but also goes into the background.
SSH -D 1080 -N -f yourhost.org