systemd file
This commit is contained in:
parent
23ed276cc3
commit
4ff8bad349
2 changed files with 16 additions and 0 deletions
|
@ -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
10
autossh-hugvey.service
Normal 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
|
Loading…
Reference in a new issue