Skip to content

Instantly share code, notes, and snippets.

@kylemanna
Created August 3, 2014 19:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemanna/750fd7a9d1ab516bd32c to your computer and use it in GitHub Desktop.
Save kylemanna/750fd7a9d1ab516bd32c to your computer and use it in GitHub Desktop.
Reverse ssh / phone home for Raspberry Pi
# /etc/supervisor/conf.d/reverse-ssh.conf
[program:reverse-ssh]
command=/usr/bin/ssh -NTC -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -i /home/pi/.ssh/reverse-fwd -R 2233:localhost:22 r@server.example.com
autorestart=true
user=pi
startretries=2147483647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment