Hello Phil,

> Now, a user on the outside machine (a) can use ssh to gain access directly to
> the web server (d) like this:
> 
> # ssh b ssh c ssh d
> 
> that works great for a shell session.
> 
> Now how can I run a web connection over this?  ssh has the ability to forward
> local ports to remote ports, but I can't figure out if that works over
> multiple ssh connections like I have.  I want to do something like (from a):
> 
> # ssh -L 1234:d:80 ssh b ssh c
> 
> So that traffic from local port 1234 ends up on port 80 of the web
> server.

But the firewall(s) in between b and d block the HTTP traffic. B tries
to send it in the clear since your tunneling is in between a and b.
With multiple connections, you need to perform multiple tunnelings.

a% ssh -L X:b:Y b ssh -L Y:c:Z c ssh -L Z:d:80 d

where X, Y and Z are any available high-numbered ports on the hosts
a, b and c.

Hope this helps.

-- 
Atro Tossavainen - email available at URL below - +358-9-850-111-86
http : / / www . iki . fi / atro . tossavainen /

Reply via email to