Many offices and campuses implement proxy server in their networks. This situation is frustating by most developer who maintain any server outside the office or campus networks. So tunneling SSH over HTTP proxy is a best deal for them. Some apps and methods can be used to do that. But, I found this following method is easy.
- Download corkscrew from http://www.agroman.net/corkscrew/
- Extract the downloaded file $ tar -xzvf corkscrew.tar.gz
- Go into corkscrews extracted directory, configure, and install it
- $ cd corkscrew
- $ ./configure
- $ make install
- Corkscrew is now installed in /usr/local/bin
- Add SSH configuration file on $HOME/.ssh/config
- Write these lines:
ProxyCommand corkscrew proxy.example.com 8080 %h %p
- If your proxy use username and password, you can use this code:
ProxyCommand corkscrew proxy.example.com 8080 %h %p ~/.ssh/proxyauth
- In ~/.ssh/proxyauth, put your credentials: <username>:<password>
- Now you can try $ ssh yourremote.server
Comments
Post a Comment