Last active
March 4, 2019 05:43
-
-
Save pzxbc/89d49f77e6ccf5c147990ed3d45aabd3 to your computer and use it in GitHub Desktop.
autossh systemd service unit file
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
[Unit] | |
Description=autossh connect | |
After=network-online.target ssh.service | |
[Service] | |
ExecStart=/usr/bin/autossh -M 40000 -N -q pi3 | |
ExecStop=killall -s KILL autossh | |
RestartSec=5 | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ssh config for pi3