Created
June 5, 2023 14:53
-
-
Save curegit/45d081d12276d85440980b725835dc2b to your computer and use it in GitHub Desktop.
AutoSSH によるポートフォワーディングのサービス化例
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 | |
After=network.target | |
[Service] | |
User=pi | |
Group=pi | |
Type=simple | |
ExecStart=/usr/bin/autossh vps -N -R 8000:10.10.10.10:3389 | |
KillSignal=SIGQUIT | |
Restart=always | |
RestartSec=10s | |
SuccessExitStatus=SIGQUIT | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment