Created
July 18, 2020 14:30
-
-
Save dnouri/c9ce45bf22bf859ab41927bad0a896c0 to your computer and use it in GitHub Desktop.
Supervisor config for Raspberry Pis that sets up a reverse tunnel to myserver.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:autossh40000] | |
command=bash -c "sleep 15 && exec /usr/lib/autossh/autossh -nN -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -M 40010 -R 0.0.0.0:40000:localhost:22 [email protected]" | |
autorestart=true | |
user=pi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
ssh [email protected] -P 40000
to log in.