March 10, 2011 Leave a comment
Reasons for Tunneling : If you are sitting behind any proxy and want to connect to any external host (not present inside your network), then in such situation you have to use tunnel the ssh connection over http. The ssh command tries to establish direction connection to the server, hence it doesn’t uses any proxy by default.
Steps to follow :
- Install corkscrew (know more about corkscrew)
- After installation is done, open the file ~/.ssh/config(create one, if it isn’t there) in your favorite text editor
- Make this changes to it
ProxyCommand corkscrew proxy.example.com port %h %p
- Now again try to do ssh, and hopefully it will work now.
Note: You can use domain name as well as ip address in place of remotehost. Ex:
*.launchpad.net or can use 184.108.40.206.
For Windows users, you can enter proxy address under Connections tab in putty for tunneling.