Skip to content

Instantly share code, notes, and snippets.

@chtz
Created July 4, 2017 21:09
Show Gist options
  • Save chtz/b3f3e0e764a75ee4f41e0e7da922c39d to your computer and use it in GitHub Desktop.
Save chtz/b3f3e0e764a75ee4f41e0e7da922c39d 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