Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-03-2007, 10:56 AM   #1 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default SSH via HTTP Proxy


I need to access ssh via an http proxy. We use an automatic proxy configuration url (pac file) for browsers. Any idea how to use it for ssh?
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-03-2007, 01:39 PM   #2 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default Re: SSH via HTTP Proxy

AFAIK, HTTP proxy is only for port 80.. You cannot access SSH through it..
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 12-03-2007, 02:06 PM   #3 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: SSH via HTTP Proxy

I can. That is what port tunnelling is for.

But my problem is, here i don't have the proxy address and port, what i have is a pac (proxy automatic config file). I don't know how to tackle it.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-03-2007, 02:10 PM   #4 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: SSH via HTTP Proxy

IE proxy url configuration: http://localhost:port/proxy.pac or something similar.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 12-03-2007, 02:27 PM   #5 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: SSH via HTTP Proxy

I need to configure ssh using a pac file.

And what is IE doing in middle. Did i mentioned it somewhere ?
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-03-2007, 03:01 PM   #6 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default Re: SSH via HTTP Proxy

Hmm.. I'd like to know more about port tunneling! Please temme when you have time
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 12-03-2007, 03:01 PM   #7 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: SSH via HTTP Proxy

I have forgoten about port tunneling, but there r certain sites that allow u to have shell window in the browser. So if u visit such sites via proxy, then may be u can get ssh there!
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 12-03-2007, 03:14 PM   #8 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: SSH via HTTP Proxy

@kalpik: not a problem. But you can google for more details. I'm not that an expert in it.

Now my scenario is something like this.

My company have a corporate firewall which blocks all ports other than 80 (http)
I want to use ssh which uses port 22, and for the same reason i cannot.
So what i need to do is to tell ssh to go through the http proxy (using port 80). This is easy if i have a proxy address, a username and a password. But my company is using a pac file for automatic proxy configuration. I don't know how to use this with ssh.

Any clues?
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-03-2007, 04:33 PM   #9 (permalink)
Administratus Rotundus
 
FatBeing's Avatar
 
Join Date: Jan 2006
Location: Pittsburgh, PA
Posts: 385
Default Re: SSH via HTTP Proxy

Try downloading the pac by entering its URL in a browser window. Open it in Notepad, and you should get all your server and port details.
__________________
YOU SHALL PAY FOR YOUR SINS!
(In case you have already paid, please ignore this notice)
FatBeing is offline  
Old 12-03-2007, 06:52 PM   #10 (permalink)
Broken In
 
uchiha.sasuke's Avatar
 
Join Date: Nov 2006
Posts: 159
Default Re: SSH via HTTP Proxy

@desertwind ............m also behind proxy ....i know proxy address and have user name & password also.....so can u plz tell me how to do it......wat r d possibilities of using SSH?????
__________________
True Power lies within the blood of your peoples revenge...The devils fruit can lead me there...
uchiha.sasuke is offline  
Old 12-03-2007, 07:04 PM   #11 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: SSH via HTTP Proxy

Thanks a lot Fatbeing for pointing that out.

@uchiha.sasuke

1. install corkscrew

2. Edit .ssh/config file in your home folder and add the following line

Code:
Host *
  ProxyCommand corkscrew http-proxy.example.com 8080 %h %p auth_file
Replace http-proxy.example.com with your actual proxy and 8080 with port.

3. create a file auth_file and put in your username and password to proxy as follows
Code:
username:password
Thats it.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-03-2007, 07:05 PM   #12 (permalink)
I see right through you.
 
Sykora's Avatar
 
Join Date: Sep 2005
Location: Chennai
Posts: 597
Default Re: SSH via HTTP Proxy

Are you trying to set up a host or client? ssh listens on port 22, so the host should be able to use it. I've accessed a friend's computer outside my residential gateway when I can't use port 22 but he can, so he was host. It should be possible to change this as well, but I haven't found out how yet. So are you server or client?
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
Sykora is offline  
Old 12-03-2007, 07:08 PM   #13 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: SSH via HTTP Proxy

I'm a client trying to access some other server through ssh.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-03-2007, 07:40 PM   #14 (permalink)
Broken In
 
uchiha.sasuke's Avatar
 
Join Date: Nov 2006
Posts: 159
Default Re: SSH via HTTP Proxy

first of all thanx for ur quick response......


now actually i want to conform that ,,,,,for using ssh as a client on pc ,do i have to install ssh in some pc outside my proxy server ???or is there ne way to pypass proxy through some other means???
__________________
True Power lies within the blood of your peoples revenge...The devils fruit can lead me there...
uchiha.sasuke is offline  
Old 12-03-2007, 07:47 PM   #15 (permalink)
Security Exp
 
47shailesh's Avatar
 
Join Date: Apr 2006
Posts: 734
Default Re: SSH via HTTP Proxy

Quote:
Originally Posted by desertwind
I'm a client trying to access some other server through ssh.
try wpc3015.amenworld.com to acess vis ssh
__________________
We Love Once, And When We do We do it Well
47shailesh is offline  
Old 13-03-2007, 10:52 AM   #16 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: SSH via HTTP Proxy

^^^
WTF. It redirected me to KProxy website. What does an anonymous proxy has to do here?
__________
Quote:
Originally Posted by uchiha.sasuke
first of all thanx for ur quick response......


now actually i want to conform that ,,,,,for using ssh as a client on pc ,do i have to install ssh in some pc outside my proxy server ???or is there ne way to pypass proxy through some other means???
I don't think you can byepass proxy. What i'm trying to tunnel it through http proxy, since http port is the only open one (it usually will be in corporate firewalls).
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness

Last edited by desertwind; 13-03-2007 at 10:52 AM. Reason: Automerged Doublepost
desertwind is offline  
Old 13-03-2007, 06:32 PM   #17 (permalink)
Broken In
 
uchiha.sasuke's Avatar
 
Join Date: Nov 2006
Posts: 159
Default Re: SSH via HTTP Proxy

ok......... thanx for that info....
__________________
True Power lies within the blood of your peoples revenge...The devils fruit can lead me there...
uchiha.sasuke is offline  
Old 13-03-2007, 07:45 PM   #18 (permalink)
I see right through you.
 
Sykora's Avatar
 
Join Date: Sep 2005
Location: Chennai
Posts: 597
Default Re: SSH via HTTP Proxy

There are some dedicated tools to tunnel through an http proxy. I used htc/hts, there probably are others.

htc -P <address-of-proxy>:<proxy-port> -F 80 <IP-of destination>:80
ssh -p 80 username@name-of-host

You'll have to get hts to listen on the host computer. I don't know if your proxy has a password, if it does I'll have to change that a bit.
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
Sykora is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 10:55 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2