The sshd command

OpenSSH daemon 3 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.

Options in the examples

-t
Test mode. Only check the validity of the configuration file and sanity of the keys.
-T
Extended test mode. Check the validity of the configuration file, output the effective configuration to stdout and then exit.

Examples

sudo sshd -T | grep -E 'passwordauthentication|permitrootlogin'
sudo sshd -t
sudo sshd -t && sudo systemctl reload ssh

Lessons that use sshd

Related commands