maybe chmod 0644 'default/apcupsd'
maybe chmod 0644 'default/arpwatch'
maybe chmod 0644 'default/asterisk'
+maybe chmod 0644 'default/autossh'
maybe chmod 0644 'default/avahi-daemon'
maybe chmod 0644 'default/batmand'
maybe chmod 0644 'default/bind9'
ErrorPolicy retry-job
</Printer>
<Printer HP_Color_LaserJet_MFP_M277dw_9D0E59_@NPI9D0E59.local>
-UUID urn:uuid:7b0aa7bf-b984-39e9-722c-6b689f5387e2
+UUID urn:uuid:fa3b232e-0bde-3b04-61fe-187a3d4d5413
Info
Location
MakeModel HP Color LaserJet MFP M277dw, driverless, cups-filters 1.20.2
DeviceURI ipps://NPI9D0E59.local:443/ipp/print
State Idle
-StateTime 1544608051
-ConfigTime 1544608051
+StateTime 1544702856
+ConfigTime 1544702856
Type 8425564
Accepting Yes
Shared No
OpPolicy default
ErrorPolicy retry-job
</Printer>
+<Printer HP_Color_LaserJet_MFP_M277dw_9D0E59_@NPI9D0E59.local>
+UUID urn:uuid:aa605245-41f4-3b6f-4bac-c70bafd338c5
+Info
+Location
+MakeModel HP Color LaserJet MFP M277dw, driverless, cups-filters 1.20.2
+DeviceURI ipps://NPI9D0E59.local:443/ipp/print
+State Idle
+StateTime 1544691923
+ConfigTime 1544691923
+Type 8425564
+Accepting Yes
+Shared No
+JobSheets none none
+QuotaPeriod 0
+PageLimit 0
+KLimit 0
+OpPolicy default
+ErrorPolicy retry-job
+Option cups-browsed true
+</Printer>
--- /dev/null
+AUTOSSH_POLL=60
+AUTOSSH_FIRST_POLL=30
+AUTOSSH_GATETIME=0
+AUTOSSH_PORT=22000
+SSH_OPTIONS="-N -R 12345:localhost:22 root@hoellein.online -i /var/lib/autossh/.ssh/root@hoellein.online"
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
+autossh:x:5004:5004:ssh tunnel user:/var/lib/autossh:/bin/sh
[Unit]
-Description=Keeps a tunnel to 'remote.example.com' open
+Description=Keeps a tunnel to 'hoellein.online' open (only IPv4)
After=network.target ssh.service
[Service]
User=autossh
+Type=simple
+EnvironmentFile=/etc/default/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
+#ExecStart=/usr/bin/autossh -M 20000 -f -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -N -T -R12345:localhost:22 -4 -i /var/lib/autossh/.ssh/root@hoellein.online hoellein.online
+ExecStart=/usr/bin/autossh $SSH_OPTIONS
+Restart=always
+#ExecStop=/usr/bin/killall -s KILL autossh
+RestartSec=60
+#Environment=AUTOSSH_GATETIME=0
+#Environment=AUTOSSH_DEBUG=7
+#Environment=AUTOSSH_LOGFILE=/var/lib/autossh/autossh.log
[Install]
WantedBy=multi-user.target