Darksat IT Security Forums
November 17, 2019, 03:30:27 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]
  Print  
Author Topic: SSH HTTP tunneling, Firewalls and Proxies  (Read 1003 times)
Darksat
Administrator
Master
*******
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.
http://www.agroman.net/corkscrew/
Download Corkscrew
http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gz

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:
Code:

tar -xzvf corkscrew.tar.gz
# [..]
cd corkscrew
./configure
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:

Code:
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.

Code:
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


Pages: [1]
  Print  
 
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 16 queries.