add files for autossh. tbd-install autossh and configure as service with aws jump key
This commit is contained in:
16
roles/autossh/files/autossh.service
Normal file
16
roles/autossh/files/autossh.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=tunnel to aws jump server
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
EnvironmentFile=/etc/default/autossh
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/autossh $SSH_OPTIONS
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user