Tunnelling SSH over an HTTP proxy

From PeformIQ Upgrade
Jump to navigation Jump to search

Add a ProxyCommand to your SSH config file $HOME/.ssh/config

Host *
  ProxyCommand corkscrew http-proxy.example.com 8080 %h %p

# or

Host remote.host.com
  ProxyCommand /home/user/bin/corkscrew 1.2.3.4 3128 %h %p

Host * line uses a limited form of regular expression. See the ssh_config(5) man page for more information.

Now, issue a command like:

ssh user@remote.host.com

Resources

http://www.mtu.net/~engstrom/ssh-proxy.php

http://catholicpenguin.net/gobe/wiki/index.php/Strict_NTLM_Firewall_Piercing