Tuesday, January 18, 2011

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
    
    o_O Tync : It's recommended to use -fnN in conjunction.
    From andol
  • from ssh manpage:

     -N      Do not execute a remote command. This is
             useful for just forwarding ports (protocol version 2 only).
    
    From dschulz
  • ssh -ND 1080 @myhomemachine.com

0 comments:

Post a Comment