Write your config like conf.example and
$ cat your_config | ruby run.rb
$ ssh -g -N user@subdomain.somedomain.com -R '*:4001:localhost:3000'
-g
Means 'Allows remote hosts to connect to local forwarded ports'
-N
Means 'Do not execute a remote command. This is useful for just forwarding ports (protocol version 2 only)'
-R '*:4001:localhost:3000'
Means 'Forward request to remote:4001 to localhost:3000'
- Configure
GatewayPorts
in sshd_config toyes
MIT License