Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am not exactly sure what the best solution would be for this problem, but

I have a VPS with 3 ips. I have a unix system behind a home router with no ports forwarded. I want to be able to access myVPSIP:25566 and get the data on the internal system.

myVPS ---> internal system

How do I go about doing this, I have tried reverse tunneling. If the minecraft server part causes confusion, here is an alternate example that will accomplish the same task.

I have a web server on a computer inside a home network. It cannot get incoming connections, so I purchased a VPS, and it has an IP. I wish to be able to access the web server via the VPS IP. I have tried reverse SSH Tunnel, but am unsure why it does not work.

here is the command I used

ssh -f -R 25566:127.0.0.1:25566 root@myvps -N
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Try setting the GatewayPorts configuration parameter of the SSH server to yes. By default, it is no, which means that the server will not forward connections coming from another machine. You may have to restart the SSH server (the software, not the hardware) after making this change for it to take effect.

share|improve this answer
    
is the command correct though? –  macintosh264 Jul 15 '12 at 3:53
    
Yes, the command appears correct. –  Fran Jul 15 '12 at 22:53

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.