ssh tunnel thru http proxy

install corkscrew : sudo apt-get install corkscrew (under ubuntu/debian)

edit your ~/.ssh/config file:

Host *
ProxyCommand corkscrew 3128 %h %p

Where 3128 is the default port of a squid proxy server…

For more info on how to adjust your ssh config file do:

man ssh_config

If you’re getting one of the errors below, then you’ve made an error in the config file:

  • ssh_exchange_identification: Connection closed by remote host
  • ssh: connection to host port 22: Connection timed out

Other pages containing related information: here & here

2 thoughts on “ssh tunnel thru http proxy

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.