Network

The sshd command

SSH server. With -t it checks the configuration file (/etc/ssh/sshd_config).

Most useful options

-tCheck the configuration

Copy-ready examples

$ sudo sshd -tValidate the config

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • In sshd_config you set Port, PermitRootLogin or PasswordAuthentication.

Related commands

FAQ

What does the sshd command do?

It is the SSH server daemon; used to start it or check its configuration.

How do I validate the configuration?

With sshd -t.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course