-Numerous changes to make more generic. Use varialbe for username. Defaults to "pi

-
This commit is contained in:
2022-05-08 14:40:16 +00:00
parent fc0b355f1d
commit d539e40943
36 changed files with 137 additions and 109 deletions

View File

@@ -2,4 +2,4 @@ AUTOSSH_POLL=60
AUTOSSH_FIRST_POLL=30
AUTOSSH_GATETIME=0
AUTOSSH_PORT=0
SSH_OPTIONS="-M 0 -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -N -R 6666:localhost:22 ec2-user@3.80.203.168 -i /home/pi/SDWAN-Versa.pem"
SSH_OPTIONS="-M 0 -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -N -R 6666:localhost:22 ec2-user@3.80.203.168 -i /home/'{{ def_username }}'/SDWAN-Versa.pem"

View File

@@ -5,7 +5,7 @@ After=network-online.target
[Service]
Type=simple
User=pi
User="{{ def_username }}"
EnvironmentFile=/etc/default/autossh
ExecStart=
ExecStart=/usr/bin/autossh $SSH_OPTIONS