Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save filipesam/ac0dc1bc69be959d9489b67264a449e7 to your computer and use it in GitHub Desktop.
Save filipesam/ac0dc1bc69be959d9489b67264a449e7 to your computer and use it in GitHub Desktop.
SSH over HTTP tunnel (hts- & htc Sample)
# Client (Cygwin)
lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin
apt-cyg install httptunnel
htc -P $CORP_HTTP_PROXY_HOST:$CORP_HTTP_PROXY_PORT -F 8888 $HTS_SERVER_HOST:80
 
ssh -p 8888 $USER@localhost
# Server (Amazon Linux)
sudo yum groupinstall 'Development Tools'
git clone https://github.com/larsbrinkhoff/httptunnel.git
cd httptunnel/
./autogen.sh
./configure
make
sudo make install
sudo /usr/local/bin/hts -F localhost:22 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment