2022-04-16 11:58:00 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Reverse SSH connection
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=pi
|
|
|
|
|
2023-08-17 16:47:09 +00:00
|
|
|
ExecStart=/usr/bin/ssh -NTg -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o ServerAliveCountMax=3 -o StrictHostKeyChecking=no -i /home/pi/.ssh/id_ed25519 -R {{ ssh_port }}:localhost:22 tanshu@rohan.tanshu.com
|
2022-04-16 11:58:00 +00:00
|
|
|
|
|
|
|
# Restart every >2 seconds to avoid StartLimitInterval failure
|
|
|
|
Restart=always
|
|
|
|
RestartSec=5s
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|