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/*.confPasswordAuthentication nosshd -T -f test_config -h hostkeyRelated terms
- sshd — The OpenSSH server program that accepts SSH connections and logs every login attempt.
- drop-in file — A small extra configuration file placed in a directory that a main configuration file includes, used to add or change settings without editing the main file.
- effective configuration — The settings a program actually uses once it has read every file, include and built-in default, which can differ from what any single file says.
- PasswordAuthentication — The sshd_config setting that decides whether users may log in to an SSH server by typing a password.
Taught in
- Security Governance vs Security Management — Cybersecurity Fundamentals, GRC & Cryptography
- Security Baselines, Policies & Hardening Standards — Cybersecurity Fundamentals, GRC & Cryptography
- SSH: Keys, And An sshd That Listens Where You Say — Red Hat Certified System Administrator (EX200) Exam Prep
- Deploying Files: file, copy, lineinfile And blockinfile — RHCE in Ansible (EX294): Automate Red Hat Systems