remote port forwarding
Posted by: wilfordbrimley
Posted on: 2007-08-12 13:04:00
What I'm trying to do is remote port forward http://example.com:8888
to http://localhost:3000
I can get a local tunnel from my box to the dreamhost box my site is i.e.
ssh -L 3307:localhost:3306 username@example.com
However, I haven't had luck with remote port forwarding:
ssh -nNT -g -R *:8888:0.0.0.0:3000 example.com
Warning: remote port forwarding failed for listen port 8888
i get the same message with
ssh -nNT -g -R *:8888:0.0.0.0:3000 username@example.com
ssh -nNT -g -R *:8888:127.0.0.1:3000 example.com
ssh -nNT -g -R *:8888:127.0.0.1:3000 username@example.com
So I'm worried dreamhost disallows this. I'd really appreciate any suggestions as to whether this is possible and what I'm doing wrong if it is.