Updated the docker and ansible files for setting up and building / running rasberry pi with the frank service

Still need to manually copy the new id_rsa created on the pi to knox.
This commit is contained in:
2021-07-24 12:57:34 +05:30
parent 5cd0acc7a9
commit eedc571ade
8 changed files with 216 additions and 11 deletions

View File

@ -0,0 +1,16 @@
[Unit]
Description=Reverse SSH connection
After=network.target
[Service]
Type=simple
User=pi
ExecStart=/usr/bin/ssh -NTg -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o ServerAliveCountMax=3 -o StrictHostKeyChecking=no -i /home/pi/.ssh/id_rsa -R {{ ssh_port }}:localhost:22 tanshu@knox.tanshu.com
# Restart every >2 seconds to avoid StartLimitInterval failure
Restart=always
RestartSec=5s
[Install]
WantedBy=default.target