Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have the following configuration :

1) A tunnel is created between host W and H so I can connect to W from home on port 23000 through H : on my laptop : ssh -p 23000 H and this brings me to W

2) H is a computer at home behind the DSL box, so there is a port forwarding from the box port 22 to H, thus I can do this from outside.

3) From home (on local network), allmost all ports are open on H (I guess), and I can do a port forwarding (don't know exactly if this is the right term) to connect through the tunnel on my work intranet. At work, we use a proxy P on port 8080. So using this : ssh -L 8000:localhost:8080 -p 23000 H and configuring my local browser to use a proxy on port 8000 on localhost, it is just as if I was in the work intranet and using the proxy P.

4) Now, what i would like to do, is to do the same from outside. I opened the port 23000 on the box and redirected it to H:23000. But it does not work. Is it possible that when dealing with this, sshd tries to open new ports for data, and this is why I got this error : channel 3: open failed: connect failed: Connection refused ? And if yes, is it possible to force everything to go through port 23000 ? Or to know which other port to open ?

Thanks a lot for any hint on this !

Julien

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.