ssh reverse tunnel listens always to localhost

7

6

I use the following command to set up a reverse tunnel:

ssh -i dev.pem -vvv -R 8480:localhost:8080 user@host.com "sleep 6000"

What ends up happening is that ssh starts to listen to the lo device, rather than on the eth0 device (binds to 127.0.0.1 instead of the remove public ip).

Any clues how this behavior can be altered?

Nick Hristov

Posted 2011-03-28T03:44:51.773

Reputation: 241

whati f you say *:8480 ? – barlop – 2014-04-01T11:49:23.540

Answers

7

Enable GatewayPorts in /etc/ssh/sshd_config.

Reference: http://www.symantec.com/connect/articles/ssh-port-forwarding

Nick Hristov

Posted 2011-03-28T03:44:51.773

Reputation: 241