sshd
The OpenSSH server program that accepts SSH connections and logs every login attempt.
In more detail
sshd writes to the auth log: "Failed password" for a wrong password, "Accepted password" or "Accepted publickey" for a success, with the account and source address. Its configuration file sshd_config controls options such as PermitRootLogin and whether password logins are allowed.
Examples
Sep 27 09:12:41 web01 sshd[4121]: Failed password for invalid user admin from 198.51.100.23 port 40022 ssh2Sep 27 09:16:44 web01 sshd[4190]: Accepted password for deploy from 203.0.113.50 port 52811 ssh2Related terms
- SSH — A protocol for logging in to and running commands on another computer securely over a network.
- auth.log — The Linux log file that records logins, SSH sessions, sudo use and other authentication events.
- PermitRootLogin — The sshd_config setting that decides whether the root account may log in directly over SSH.
- public key authentication — Logging in by proving you hold a private key whose matching public key the server already trusts, instead of typing a password.
- sshd_config — The main configuration file of the OpenSSH server, normally at /etc/ssh/sshd_config, which controls who can log in and how.
- PasswordAuthentication — The sshd_config setting that decides whether users may log in to an SSH server by typing a password.
Taught in
- The Host Footprint: Six Doors On A Worker — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Security Governance vs Security Management — Cybersecurity Fundamentals, GRC & Cryptography
- Security Baselines, Policies & Hardening Standards — Cybersecurity Fundamentals, GRC & Cryptography
- Services At Boot: Start, Enable And Mask — Red Hat Certified System Administrator (EX200) Exam Prep
- Logs, The Journal, And Keeping It Across Reboots — Red Hat Certified System Administrator (EX200) Exam Prep
- SELinux Ports And Booleans: The Other Two Refusals — Red Hat Certified System Administrator (EX200) Exam Prep
- Event Correlation Rules, Thresholds & Anomaly Pipelines — Security Operations & Threat Hunting (SOC)
- Log Parsing, Schema Normalization (OCSF/ECS) & Extraction — Security Operations & Threat Hunting (SOC)
- Recovery & System Validation Testing — Security Operations & Threat Hunting (SOC)
- Ninety Minutes, Two Kinds Of Question: How Linux+ Is Scored — CompTIA Linux+ (XK0-006) Exam Prep
- One Word Locked Out Every Directory User: PAM, SSSD, LDAP And Kerberos — CompTIA Linux+ (XK0-006) Exam Prep
- Who Wrote That Sudoers File? The Journal, rsyslog, logrotate And auditd — CompTIA Linux+ (XK0-006) Exam Prep
- Root Over SSH From Anywhere: Keys, sshd, setuid Files And Attributes — CompTIA Linux+ (XK0-006) Exam Prep
- What Changed Last Night? Integrity, Scans, Benchmarks And Secure Deletion — CompTIA Linux+ (XK0-006) Exam Prep
- Forbidden, With Perfect Permissions: Paths, ACL Masks And SELinux Denials — CompTIA Linux+ (XK0-006) Exam Prep
- It Is Slow, Says Everyone: CPU, Memory, Disk And Network Bottlenecks — CompTIA Linux+ (XK0-006) Exam Prep
- OpenSSH: Keys, Client Aliases And A Hardened Server — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- User Limits: Who Gets Which Number At Login — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Mock Exam, Part 1: Seventeen Tasks, One Reboot — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Mock Exam, Part 2: Real Machines And The Costly Mistakes — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- RPM, YUM, DNF And Zypper — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
- Deploying Files: file, copy, lineinfile And blockinfile — RHCE in Ansible (EX294): Automate Red Hat Systems
References
- OpenBSD manual: sshd
- OpenBSD manual: sshd_config
- OpenBSD manual: sshd(8)
- OpenBSD manual: sshd_config(5)
Certification courses
- CKS course and practice exam: Certified Kubernetes Security Specialist
- RHCSA course and practice exam: Red Hat Certified System Administrator (EX200)
- CompTIA Linux+ course and practice exam: XK0-006
- LFCS course and practice exam: Linux Foundation Certified System Administrator
- LPIC-1 course and practice exam: Linux Administrator (101-500 and 102-500)
- RHCE course and practice exam: Red Hat Certified Engineer in Ansible (EX294)