diff --git a/auto-ssh-systemd-hosts.conf b/auto-ssh-systemd-hosts.conf index 22d3ff2..c5a4078 100644 --- a/auto-ssh-systemd-hosts.conf +++ b/auto-ssh-systemd-hosts.conf @@ -1,6 +1,6 @@ Host bpfilip.dk HostName bpfilip.dk - IdentityFile /root/.ssh/id_rsa + IdentityFile /home/pi/.ssh/id_rsa User root Port 2223 LocalForward 22 127.0.0.1:2222 diff --git a/autossh.service b/autossh.service index e76ead8..bdc7a72 100644 --- a/autossh.service +++ b/autossh.service @@ -3,9 +3,10 @@ Description=Keeps an SSH tunnel to 'bpfilip.dk' open After=network-online.target [Service] -User=root ExecStart=/usr/bin/autossh -M 0 -N -q -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" bpfilip.dk ExecStop=/usr/bin/killall -s KILL autossh +User=1000 +Group=1000 Restart=always RestartSec=3 diff --git a/public/index.html b/public/index.html index fb1ef09..dd08011 100755 --- a/public/index.html +++ b/public/index.html @@ -41,20 +41,20 @@