Darksat IT Security Forums
August 07, 2020, 02:56:54 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Darksat IT Security Forum
From Firewall Support, AntiVirus Questions, Spyware problems, Linux and Windows Security, Black Hat SEO right down to Website Design and Multimedia
  Home Help Search Gallery Links Staff List Login Register  

SSH HTTP tunneling, Firewalls and Proxies

Pages: [1]
Author Topic: SSH HTTP tunneling, Firewalls and Proxies  (Read 1014 times)
Posts: 3303

View Profile WWW
« on: December 09, 2006, 11:40:56 am »

Can't use SSH on port 22? Need to tunnel through a proxy server or get through a firewall and can't SSH directly?try this.
Download Corkscrew

This is one of the best http-tunnel programs and doesn't require server-side applications unlike httptunnel (which is otherwise very good).
Corkscrew works on almost every UNIX/Linux platform and even compiles and runs flawlessly under Cygwin on Windows.
Unpack and Compile corkscrew:

tar -xzvf corkscrew.tar.gz
# [..]
cd corkscrew
make install
corkscrew should now be installed in /usr/local/bin on your machine.
To put it somewhere else, use the --prefix=path flag to the configure script.

Add a ProxyCommand to your SSH config file:

You may or may not have a configuration file for SSH already. It should be located in $HOME/.ssh/config and is a simple text file. Create one if it does not exist and add lines such as these to it:

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

Replace http-proxy.example.com with the address of your proxy and you can also replace 8080 with the port on which the proxy listens, which may be 80 or even another  port. The %h and %p will be replaced automatically by SSH with the actual destination host and port.

These lines tell the SSH client to start corkscrew and to make the actual connection to the SSH server. The Host * line indicates that this will be done for ALL hosts.
If you wish to restrict the hosts for which this will be done, you can put a limited form of regular expression there.
If you don't have corkscrew in your path or have put it in a non-standard location, you may specify an absolute path to corkscrew in that file as well.
try it like so.

ssh example.net

That should be it, anything you can do with SSH you should now be able to do through the proxy server.
Report Spam   Logged

Share on Facebook Share on Twitter

Pages: [1]
Jump to:  

Powered by EzPortal
eXTReMe Tracker
Security Forum
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy
Page created in 0.047 seconds with 12 queries.