Operating System - HP-UX
1842543 Members
2498 Online
110189 Solutions
New Discussion

Re: HTTP Tunneling over ssh

 
George Nikoloudis_1
Frequent Advisor

HTTP Tunneling over ssh

Hi,

I would like to tunnel HTTP over ssh protocol from one server to other.

Can you help how?

Thanks in Advanced

5 REPLIES 5
Robert True
Frequent Advisor

Re: HTTP Tunneling over ssh

I suggest the O'reilly book:

SSH The Secure Shell
The Definitive Guide

By Barrett & Silverman

Covers just about all there is on the 3 major variants of ssh, (the HP version based on Open SSH 1.3, if I remember correctly).
Christian Gebhardt
Honored Contributor

Re: HTTP Tunneling over ssh

Hi

Situation:

- httpserver on machine a
- browser on machine b, no access between a and b
- machine c in the same segment as a and with ssh-access to b

c# ssh -R 1234:a:8080 b

on machine b you now can connect to localhost:1234, this url is redirected to a:8080

Chris
George Nikoloudis_1
Frequent Advisor

Re: HTTP Tunneling over ssh

my problem is a littel more comples now.

I want to use a server where everybody will connect and the HTTP packets are going to be forwarded to the destination server over ssh tunneling

a-->b-->c

(a) PC

(b) ssh tunneling server

(c) WEB Server

Thanks
Jordan Bean
Honored Contributor

Re: HTTP Tunneling over ssh


Works for me...

ssh -gXNL localport:remotehost:remoteport remotehost

-X enable port forwarding
-N no command or shell, just port forwarding
-L map local port to remote port
-g allow everyone to use the local port

Jordan Bean
Honored Contributor

Re: HTTP Tunneling over ssh


Also use -f to daemonize it after authentication.