maybe chmod 0755 'systemd/system'
maybe chmod 0644 'systemd/system.conf'
maybe chmod 0644 'systemd/system/alexa.service'
+maybe chmod 0644 'systemd/system/autossh.service'
maybe chmod 0755 'systemd/system/bluetooth.target.wants'
maybe chmod 0755 'systemd/system/default.target.wants'
maybe chmod 0755 'systemd/system/display-manager.service.wants'
-#LANG=de_DE.UTF-8
-LC_NUMERIC="he_IL.UTF-8"
-LC_MONETARY="he_IL.UTF-8"
-LC_PAPER="he_IL.UTF-8"
-LC_NAME="he_IL.UTF-8"
-LC_ADDRESS="he_IL.UTF-8"
-LC_TELEPHONE="he_IL.UTF-8"
-LC_MEASUREMENT="he_IL.UTF-8"
-LC_IDENTIFICATION="he_IL.UTF-8"
+LANG=de_DE.UTF-8
geoclue:x:155:
lool:x:156:
serverbackup:x:5003:
+autossh:x:5004:
rdma:x:151:
geoclue:x:155:
lool:x:156:
+serverbackup:x:5003:
geoclue:!::
lool:!::
serverbackup:!::
+autossh:!::
rdma:!::
geoclue:!::
lool:!::
+serverbackup:!::
geoclue:x:148:155::/var/lib/geoclue:/usr/sbin/nologin
lool:x:149:156::/opt/lool:/usr/sbin/nologin
serverbackup:x:5003:5003::/home/serverbackup:/bin/bash
+autossh:x:5004:5004:ssh tunnel user:/home/autossh:/bin/sh
Debian-snmp:x:145:121::/var/lib/snmp:/bin/false
geoclue:x:148:155::/var/lib/geoclue:/usr/sbin/nologin
lool:x:149:156::/opt/lool:/usr/sbin/nologin
+serverbackup:x:5003:5003::/home/serverbackup:/bin/bash
geoclue:*:17827:0:99999:7:::
lool:*:17828:0:99999:7:::
serverbackup:$6$eaExedUs$qMxK2M5Q/pA6bz8crjGw1pESBnAFkus3IHDZTkCe1FFOw6LECghvQfM86zyNk.G4L5chDSgYeElHSvWgPIxJ.1:17841:0:99999:7:::
+autossh:!:17872:0:99999:7:::
Debian-snmp:!:17827:0:99999:7:::
geoclue:*:17827:0:99999:7:::
lool:*:17828:0:99999:7:::
+serverbackup:$6$eaExedUs$qMxK2M5Q/pA6bz8crjGw1pESBnAFkus3IHDZTkCe1FFOw6LECghvQfM86zyNk.G4L5chDSgYeElHSvWgPIxJ.1:17841:0:99999:7:::
door:362144:65536
webssh:427680:65536
serverbackup:493216:65536
+autossh:558752:65536
git:296608:65536
door:362144:65536
webssh:427680:65536
+serverbackup:493216:65536
door:362144:65536
webssh:427680:65536
serverbackup:493216:65536
+autossh:558752:65536
git:296608:65536
door:362144:65536
webssh:427680:65536
+serverbackup:493216:65536
--- /dev/null
+[Unit]
+Description=Keeps a tunnel to 'remote.example.com' open
+After=network.target ssh.service
+
+[Service]
+User=autossh
+# -p [PORT]
+# -l [user]
+# -M 0 --> no monitoring
+# -N Just open the connection and do nothing (not interactive)
+# LOCALPORT:IP_ON_EXAMPLE_COM:PORT_ON_EXAMPLE_COM
+ExecStart=/usr/bin/autossh -M 20000 -f -i /root/.ssh/root@hoellein.online -N -T -R12345:localhost:22 root@hoellein.online
+ExecStop=/usr/bin/killall -s KILL autossh
+RestartSec=5
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+/etc/systemd/system/autossh.service
\ No newline at end of file