Supervisor + Ngrok
authtoken: YOUR_AUTH_TOKEN
web_addr: 0.0.0.0:4040
tunnels:
ssh:
proto: tcp
addr: 0.0.0.0:22
[program:ngrok]
command=/bin/ngrok start --all -log stdout --authtoken YOUR_AUTH_TOKEN -config=/root/.ngrok2/ngrok.yml
stdout_logfile=/var/log/ngrok.out.log
stderr_logfile=/var/log/ngrok.err.log
autostart=true
autorestart=true
stopsignal=QUIT
apt-get install supervisor ngrok
Create the config files
supervisorctl reread
supervisorctl update
supervisorctl restart all
Check dashboard for tunnel status