Re: Access SSH server via HTTP proxy



Just an update.
I did what what Todd told and it is working fine.
Thanks Todd, you the man
hasenhei wrote:
Doug wrote:
But that is you are using openSSH.
I understand that Putty already has HTTP proxy connect build in.
I hope my understading is correct.

Doug, your understanding is absolutely correct :-)

I just didn't know that putty has this functionality built-in. I just
tested configuring proxy in putty on a windows-machine now, and it
worked fine.

Doug wrote :

But when
I set it up in PUTTY (under Connection -> Proxy tab) looks like the
HTTP proxy detects I am trying to connect to SSH server. Thus it throws
service not allowed exception (error 403).

Right, this is what I meant when saying "In a lot of setup (including
my own) the connect-method is only allowed to port 443,".

The proxy-server of your company does not allow the connect-method to
port 22.

But if I try to change the port # of ssh server setting for PUTTY from
22 to 80 it throws this exception:
503: service unavailable.

Yes, because there's no ssh-server (not even anything at all)
responding on port 80 on the machine you try to connect to.

I think the solution to your problem was already given by Todd H. in
his previous message.

You should configure your ssh-server to listen on port 443 (maybe 80
would do too here, but 443 is better).
Of course you need to tell putty to connect to port 443 then. I just
tested this here, and it worked fine.

Cheers,
Armin

PS: Be careful with firewall-piercing if your work-contract does not
allow such habits.
Of course this ssh-connection shows up in the proxy-log.

.



Relevant Pages

  • Re: Access SSH server via HTTP proxy
    ... I understand that Putty already has HTTP proxy connect build in. ... Doug, your understanding is absolutely correct :-) ... my own) the connect-method is only allowed to port 443,". ...
    (comp.security.ssh)
  • Re: RPC over HTTP: Keine Verbindung ueber HTTP!
    ... dass man den RPC over HTTP Proxy zur ... > HTTP Proxy erreichbar zu sein. ... > Schluessel auch der Name und Port des Global Catalog-Servers angegeben ... welchen Port sie fuer RPC over HTTP nehmen sollen. ...
    (microsoft.public.de.exchange)
  • Re: Wierd RDC problemm
    ... You might look at installing this loopback patch for XP SP2 on PC C. ... In the example shown I am forwarding source port 3391 to ... Using the same setup (putty) with pc C I ... > can connect to the ssh tunnel and do otherthing such as ftp tunneling... ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Cant ssh
    ... Are you using IMAP and ... I have never used Putty so I do not know ... > more remote machine. ... the Linux box is also not serving my webmin page on port ...
    (Debian-User)
  • Re: Is Putty a full replacement of the command line (openssh) client ?
    ... PuTTY is a ful replacement for command-line SSH. ... X redirection and all that. ... Online doco would be a good start for port forwarding: ...
    (microsoft.public.security)