mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-10-19 15:11:36 +00:00
09ea766fb5
Duplicate directives in sshd_config (e.g. two active PermitRootLogin lines from Match blocks or provisioning scripts) made the grep|awk captures multi-line. The embedded newline ended up inside a JSON string literal, so JSON.parse failed with "Bad control character in string literal" and the Security tab showed a red banner plus default values. Take the first match (mirroring sshd's first-match-wins semantics) and strip carriage returns from CRLF-edited configs.