20 lines
525 B
SYSTEMD
20 lines
525 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Guanghu BS-GZ-006 to JD Lake Lamp authorization tunnel
|
||
|
|
After=network-online.target
|
||
|
|
Wants=network-online.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
User=root
|
||
|
|
ExecStart=/usr/bin/ssh -NT -F /etc/guanghu/jd-authz-tunnel-ssh-config jd-authz-target
|
||
|
|
Restart=always
|
||
|
|
RestartSec=5
|
||
|
|
NoNewPrivileges=true
|
||
|
|
PrivateTmp=true
|
||
|
|
ProtectHome=read-only
|
||
|
|
ProtectSystem=strict
|
||
|
|
ReadOnlyPaths=/etc/guanghu/jd-authz-tunnel-ssh-config /etc/guanghu/secrets/ssh/bs_gz_006_to_jd_authz_proxy /root/.ssh/known_hosts
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|