sshd_config

The main configuration file of the OpenSSH server, normally at /etc/ssh/sshd_config, which controls who can log in and how.

In more detail

Each line is a keyword and a value, such as PasswordAuthentication no. For most keywords sshd uses the first value it reads, and an Include line pulls in other files at that point, so a drop-in file included near the top can override settings written further down. To see what the server will really enforce, run sshd -T instead of reading the file.

Examples

Include sshd_config.d/*.conf
PasswordAuthentication no
sshd -T -f test_config -h hostkey

Related terms

Taught in

References

Certification courses