commands

sshd — OpenSSH server configuration checks

Server daemon; -t validates configuration and host keys; -T prints effective settings. Use a disposable VM and retain console access. Status zero for successful validation, nonzero for failure. Use a fresh private workspace; live operations are VM-only.

Formal Syntax & Structure

linux syntaxlinux
sshd -t [-f CONFIG]

Parameters & Attributes

NameTypeDescription
-toptionCheck syntax and keys
-ToptionPrint effective configuration
-foptionSelect configuration file

Return Value

exit status and output

Server daemon; -t validates configuration and host keys; -T prints effective settings. Use a disposable VM and retain console access. Status zero for successful validation, nonzero for failure.

Working Example

Example Snippetlinux
sudo sshd -t -f ./sshd_config.sample
Linux Reference