Open jph00 opened 4 years ago
I stole some ideas from abhishek thakur and created a package for this purpose using ngrok.
https://remoteconnect.netlify.app/
I am planning to combine some of the ideas from https://github.com/pete88b/nbdev_colab_helper to help around git issues on colab. [currently using both of them together].
I have limited knowledge on sshd and tunneling but integrating this script in a wrapper like above could be very useful[ since ngrok is paid it only allows a single tunnel]
This lets you ssh login to a box that's stuck behind a firewall. The basic idea is described here. The following has been testing on Ubuntu 20.04.
Server setup
Do this step on SSH server that you'll tunnel through:
Do all following steps on box you're tunneling to:
Setup
Test
Try logging into host on port 10022 from your PC (
ssh -p 10022 your.server
), and you should get to tunneled machine. If it's working, hit Ctrl-C to stop tunnel.Create service file
Test logging in to port 10022 again. If it's working, enable on boot: