sshconfig-lint
LocalCommand ist nicht aktiviert
← Alle PrüfungenEin LocalCommand ist konfiguriert, obwohl PermitLocalCommand nicht aktiviert ist.
Warum das wichtig ist
OpenSSH ignoriert LocalCommand still, solange die Ausführung nicht ausdrücklich erlaubt ist. Die erwartete lokale Aktion findet nie statt.
So behebst du es
Füge PermitLocalCommand yes nur in einem passenden Bereich hinzu, wenn du Befehl und Konfigurationsquelle vertraust. Andernfalls entferne LocalCommand. Bei einem nicht aufgelösten Include warnt der Linter bewusst nicht.
Vorher und nachher
Host production LocalCommand logger connected-to-productionHost production PermitLocalCommand yes LocalCommand logger connected-to-production