Hacker News new | past | comments | ask | show | jobs | submit login

How to start a SOCKS proxy on localhost:12345 proxying through your account foo on bar.example.com:

  ssh -D 12345 -N -f foo@bar.example.com



Tip: you can group the flags together like so:

    ssh -fND 12345 foo@bar.example.com
Also, the -f flag will cause it to fail if you don't have passwordless auth set up. If you don't have it set to use private/public key pairs, just tunnel like so:

    ssh -ND 12345 foo@bar.example.com


Nah, -f will prompt for password before backgrounding the process.


ssh -D 12345 -N -f foo@bar.example.com




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: