Fix: Overwrite ControlPath

as otherwise the sish server crashes

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-09-27 15:00:30 +02:00
parent 6715bdf685
commit 8360afca7d
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -39,4 +39,4 @@ port="${1:-}"
step "Starting port-forward..." step "Starting port-forward..."
vault-sshadd ${key} vault-sshadd ${key}
exec /usr/bin/ssh -R "${remote}:${host}:${port}" "${args[@]}" exec /usr/bin/ssh -o ControlPath=/tmp/shareport-${port} -R "${remote}:${host}:${port}" "${args[@]}"