sshconfig-lint

LocalCommand is not enabled

All checks
warningChecked in the browserLOCAL_COMMAND_DISABLED

A LocalCommand is configured while PermitLocalCommand is not enabled.

Why it matters

OpenSSH silently ignores LocalCommand unless execution is explicitly permitted. The expected local setup or notification never happens.

How to fix it

Add PermitLocalCommand yes in an applicable scope only when you trust the command and configuration source. Otherwise remove LocalCommand. The linter stays conservative when an unresolved Include could enable it.

Before and after

What is wrong
Host production  LocalCommand logger connected-to-production
Corrected configuration
Host production  PermitLocalCommand yes  LocalCommand logger connected-to-production