Add tunnel for monitor

This commit is contained in:
Ruben van de Ven 2020-01-28 21:26:39 +01:00
parent f5c229e131
commit acb446a267
2 changed files with 20 additions and 0 deletions

8
README.md Normal file
View file

@ -0,0 +1,8 @@
copy autossh-tunnel.service to `/etc/systemd/system/`:
```bash
cp autossh-tunnel.service /etc/systemd/system/autossh-tunnel.service
sudo systemctl enable autossh-tunnel.service
```

12
autossh-tunnel.service Normal file
View file

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