Add tunnel for monitor

master
Ruben van de Ven 3 years ago
parent f5c229e131
commit acb446a267
  1. 8
      README.md
  2. 12
      autossh-tunnel.service

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

@ -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
Loading…
Cancel
Save