Praveen's Blog

An Eternal Quest for Incremental Improvement

When you are behind a HTTP proxy and you want to SSH to a server on the Internet, the best choice is to use corkscrew. After installing corkscrew in your PATH, the SSH command goes like this.

# ssh -o "ProxyCommand corkscrew <Proxy server> <Proxy port> %h %p" <SSH server>

My debian laptop is connected to Internet directly at home and through a HTTP proxy at office. For handling apt-get, I was having a shell script which sets the HTTP_PROXY, http_proxy, FTP_PROXY, ftp_proxy environment variables to the approrpriate proxy server on demand and then I do sudo apt-get <whatever>. All ...