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
| Name | Type | Description |
|---|---|---|
| -t | option | Check syntax and keys |
| -T | option | Print effective configuration |
| -f | option | Select 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