Tuesday, September 22, 2009

Friday, September 4, 2009

How to access intra web services using SSH server as proxy

To access internal office web services from remote location (home or any other places) you can use office SSH server as proxy


Prerequisites :

* a ssh login account on a server

Linux :

ssh -ND 9999 myaccount@sshserver.com

Windows :

Download plink from http://the.earth.li/~sgtatham/putty/latest/x86/plink.exe

Open command line terminal
plink.exe -N -D 9999 myaccount@sshserver.com

you need to replace the "myaccount" with your username on your SSH server and sshserver.com with your server domain name or IP address.

When you execute either of those commands, you'll be prompted for your password. After you authenticate, nothing will happen. The -N tells ssh not to open an interactive prompt, so it will just hang there, waiting. That's exactly what you want.


Set Firefox to use SOCKS proxy

Once your proxy's up and running, configure Firefox to use it. From Firefox's Tools menu, choose Options, and from the Advanced section choose the Network tab. Next to "Configure how Firefox connects to the Internet" hit the "Settings" button and enter the SOCKS information, which is the server name (localhost) and the port you used (in the example above, 9999.)


For more detials : http://revision3.com/hak5/SSHGamesBlogsPasswords/