diff --git a/README.md b/README.md new file mode 100644 index 0000000..2c47840 --- /dev/null +++ b/README.md @@ -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 +``` + diff --git a/autossh-tunnel.service b/autossh-tunnel.service new file mode 100644 index 0000000..5ab7064 --- /dev/null +++ b/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 +