SSH tunneling question.
So I'm trying to follow this tutorial - http://daniel.haxx.se/docs/sshproxy.html.
I'm having trouble understanding the "The SOCKS Proxy way" part of it. Do I need to have an SSH server running on my "HOME" computer using OpenSSH? And use OpenSSH at the "WORK" computer for it to work? Or can I use PuTTY at "WORK"? If anyone can explain maybe how to do this in a little more detail, it would be awesome. Thank you. |
You only need a server at the remote end (where the output of the proxy will come from. The local proxy port is setup for the duration of the ssh command, when can be backgrounded.
Example: Run this... Code:
ssh -N -o BatchMode=yes -D 4001 $rhost account@remote.host.somewhere & Remember that PID! You need to kill that background daemon process to close the proxy link! Here is a test I like to try... Code:
curl --socks5 localhost:4001 http://anonymouse.org/cgi-bin/anon-snoop.cgi | You may like to look at "tsocks" which is a LD_PRELOAD library that will force most applications to use the indicated proxy port for its internet communications. |
Thank you very much!
|
Quote:
I am a late commer to these foums, so could use the 'rep' ;-) |
All times are GMT -5. The time now is 04:25 PM. |