philippgille / serve

serve starts a simple temporary static file server in your current directory and prints your IP address to share with colleagues
Mozilla Public License 2.0
147 stars 15 forks source link

Add option to open an SSH reverse tunnel to a remote server #11

Open philippgille opened 6 years ago

philippgille commented 6 years ago

In addition to serving a directory on your host computer to colleagues on your local network, it would be awesome if you could also share the directory to people outside of that network, even if you're behind a NAT/firefall.

SSH reverse tunnels make this possible.

Go has an SSH package and it should be possible to open a reverse tunnel within the application itself.

philippgille commented 6 years ago

Maybe the underlying package of "Tunnel" can be used:

Or manually create an SSH tunnel with the stdlib, but utilize the labstack service. Their documentation contains descriptions on how to use their service with pure SSH (instead of their CLI), so if it's a public accessible service we can probably use it, too.

philippgille commented 5 years ago

Instead of having to set up your own server, the available services can be used:

Also check out:

philippgille commented 4 years ago

More similar reverse tunnel tools and services are discussed here: https://news.ycombinator.com/item?id=20410552

In case that article disappears, the options were: