SSH tunnel

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

ssh -f username@remote.host -R <The IP of the interface you want to bind the port>:<port_on_remote_host>:localhost:22 -N

Without “The IP of the interface you want to bind the port”, it will only bind on loopback interface 127.0.0.1

To enable binding on other than loopback interface, you have to add

GatewayPorts clientspecified

in your /etc/ssh/sshd_config

and reload sshd.

Be the first to comment!

Leave a Reply