tanshu
a213c1a0b5
Added: Max workers to all .envs Added: Leardall service Added: beacon redis tunnel
17 lines
438 B
Desktop File
17 lines
438 B
Desktop File
[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@beacon.tanshu.com
|
|
|
|
# Restart every >2 seconds to avoid StartLimitInterval failure
|
|
Restart=always
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=default.target
|