Show the effective sshd settings
sshd -T show active config | check if root login is disabled | is ssh password authentication enabled | sshd | configuration | hardeningsshd -T | grep -Ei '^(port|permitrootlogin|passwordauthentication|pubkeyauthentication|kbdinteractiveauthentication|allowusers|maxauthtries) 'sshd -T evaluates the complete configuration the way the service actually uses it and prints every option in lowercase. This is more reliable than looking at sshd_config because files in sshd_config.d/ and built-in defaults are taken into account. The filter shows the security-relevant options.
Note: Without the grep part, all options are shown. On syntax errors, the command aborts with an error message.
Also searched as
- sshd -T show active config
- check if root login is disabled
- is ssh password authentication enabled