-
Change server sshd_config to allow client binding artitray network interface
GatewayPorts yes -
Use
-R [bind_address:]port:host:hostportto setup port forwarding.bind_addressshould be 0.0.0.0, which means binding on all network addresses. Following example forward local ports 3000 to server 8080, and local ports 22 to server 2222. So others can open http://server:8080 to access your web server, andssh -p 2222 serverto log into your local machine.ssh -R 0.0.0.0:8080:localhost:3000 -R 0.0.0.0:2222:localhost:22 server
Created
December 20, 2012 08:21
-
-
Save doitian/4343765 to your computer and use it in GitHub Desktop.
Expose local ports via server through ssh port forward
Author
It depends. IP is enough to host a temporary demo.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does it make sense without preconfiguring DNS ?