Connecting to SSH server listening on port 443 using HTTP proxy server with HTTP CONNECT

From Notes_Wiki
Revision as of 01:56, 16 November 2012 by Saurabh (talk | contribs) (Created page with "=Connecting to SSH server listening on port 22 using HTTP proxy server with HTTP CONNECT= To connect to SSH server using http proxy server using HTTP connect use following st...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Connecting to SSH server listening on port 22 using HTTP proxy server with HTTP CONNECT

To connect to SSH server using http proxy server using HTTP connect use following steps:

  1. Download corkscrew source from http://www.agroman.net/corkscrew/ and install it using './configure; make; sudo make install'
  2. Add configuration lines similar to following in '/etc/ssh/ssh_config' file
    Host *
    ProxyCommand corkscrew <proxy-server> <proxy-port> %h %p
    Replace * with appropriate host, if corkscrew should be used only for a specific destination

Note that the above steps will work only if the given HTTP proxy server accepts HTTP CONNECT requests for all ports. Default configuration of many HTTP proxy servers is to allow CONNECT only for HTTPS ports such as 443 or 8443. In case such a restrictive proxy server is in use then SSH server can be configured to also listen on port 443, provided there is no HTTPS server running on destination