systemd file

This commit is contained in:
Ruben van de Ven 2019-04-11 12:42:22 +02:00
parent 23ed276cc3
commit 4ff8bad349
2 changed files with 16 additions and 0 deletions

View file

@ -70,6 +70,12 @@ git sumodule update
``` ```
copy autossh-hugvey.service to `/etc/systemd/system/`:
```bash
cp autossh-hugvey.service /etc/systemd/system/autossh-hugvey.service
```
### clients ### clients
``` ```

10
autossh-hugvey.service Normal file
View file

@ -0,0 +1,10 @@
[Unit]
Description=AutoSSH tunnel to hugvey user on rubenvandeven.com port 6666
After=network.target
[Service]
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 -N -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R 6666:localhost:22 hugvey@rubenvandeven.com
[Install]
WantedBy=multi-user.target