Tunnelling SSH over an HTTP proxy

From PeformIQ Upgrade
Revision as of 20:23, 9 June 2008 by BenLee (talk | contribs) (New page: Add a ProxyCommand to your SSH config file $HOME/.ssh/config <pre> Host * ProxyCommand corkscrew http-proxy.example.com 8080 %h %p # or Host remote.host.com ProxyCommand /home/use...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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