LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ssh via proxy (https://www.linuxquestions.org/questions/linux-networking-3/ssh-via-proxy-257983/)

benne 11-22-2004 11:32 AM

ssh via proxy
 
Howdy!

How can I force the ssh command to go through a proxy server. I need this beacause the firewall does not allow _ANY_ traffic to pass trough without going through the proxy first. The connection just times out now, so I need to force it to go through the proxy.

Cheers,
Benne

bignerd 11-22-2004 12:37 PM

You know they setup a proxy to keep you from doing this right? You really should talk to your administrator. Violating network security policy is usually grounds for termination or other distasteful actions. :tisk:

Anyway...

The proxy must be configured to allow ssl connections. If you can https to a web site then you know that you can at least attempt to tunnel your ssh through the proxy.

Go try an https site. I'll wait. Ok. Back yet? How did it turn out?

Assuming you were allowed to https then we'll move on.

Most (as in all I've ever seen) proxies that allow ssl connections are set to only allow this to tcp 443. Don't ask why I keep talking about ssl when you are wanting to ssh.. that's a different topic. Just trust me. Anyway like I said.. the destination that most proxies allow ssl connections to will ONLY be tcp 443. Has to do with security and what not. The CONNECT method... anyway.

So?

So change your ssh server to listen on tcp 443.

You are half way there. Now you can do this the easy way or the hard way.

Easy way. Get putty and use the proxy feature. Setup keep alives. Done.

Hard way. Get a program that will redirect connections through a proxy. SSH through that. Manually setup some type of keep alive or possibly enable it on the remote sshd.

I've done both. Finding a linux based proxy program to create a local tunnel that you point ssh at will be your only real challenge (hard way). This may help or not: http://www.linuxlinks.com/Software/N...g/Tools/Proxy/


-b

benne 11-22-2004 12:54 PM

Well. They do permit us to use ssh (we have to use that feature during programming class). But my main purpose of it is to use irc (they have blocked the irc ports). Anyways, im on linux so that puTTy wont help. I ahve tried to mix around with its proxy functions at another computer (that is running windows).

And now, POP doesnt seem to work properly, or just not at all. But HTTPS works just fine. The proxy seems to allow SSL connections just fine. Thing is, nothing works without setting it to use the damn proxy server.

I mailed the system admin. If he tells med to sod off or anything I think ill go for the hard way. Thanks for the adive anyways :D

Quote:

You know they setup a proxy to keep you from doing this right?
Meaning that they put up a challange for us who never give up. Theres always a solution. Exect for when you try to go sideways trough a door on skees :D

jymbo 11-22-2004 06:13 PM

Corkscrew

I used corkscrew in an environment similar to yours.


All times are GMT -5. The time now is 07:40 AM.