remote port forwarding

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.

Re: remote port forwarding

Posted by: Lensman
Posted on: 2007-08-12 23:01:00

If your account is a shared hosting account, you won't be able to port forward from a DreamHost server to your local machine.

What are you trying to do? Maybe we can help solve your problem another way.

Re: remote port forwarding

Posted by: wilfordbrimley
Posted on: 2007-08-13 00:24:00

was trying to develop for facebook with a local rails app as described here
http://rfacebook.rubyforge.org/tunnel.html

so i guess just waiting to hear whether thats gonna be a possibility with the new dreamhost PS deal and if not i'm gonna need to get a dedicate hosting setup, which i can't completely afford right now in terms of time/money.



Tags: sshport forwardinglocalhostdreamhost