Skip to content

Instantly share code, notes, and snippets.

@kylemanna
Created August 3, 2014 19:59
Show Gist options
  • Select an option

  • Save kylemanna/750fd7a9d1ab516bd32c to your computer and use it in GitHub Desktop.

Select an option

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 [email protected]
autorestart=true
user=pi
startretries=2147483647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment