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
```

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