A guessed or stolen password used successfully.
What gives it awayA success from a source address that produced failed attempts shortly before.
ATT&CK T1110Nothing matches that yet. Tell us what you were looking for and it goes on the list.
OpenSSH · Event Accepted password
Someone signed in over SSH successfully. Routine on its own — but a success from an address that was failing moments earlier is the single most important line in an auth log, and it is the thing worth alerting on.
Also written as Accepted password forAccepted publickey forssh accepted password logsuccessful ssh login log
Someone signed in to this machine over SSH. If it was not you and you have SSH open to the internet, that is serious.
The authentication method in the message is the field to read — 'publickey' and 'password' mean quite different things about your configuration. A successful password authentication on a server you believed was key-only is a configuration finding in its own right.
Sanitised. Addresses come from the RFC 5737 documentation ranges.
Aug 28 09:42:44 web-01 sshd[24901]: Accepted publickey for jbrooks from 192.0.2.44 port 51993 ssh2: RSA SHA256:0000000000000000000000000000000000000000000
Aug 28 09:42:44 web-01 sshd[24901]: pam_unix(sshd:session): session opened for user jbrooks(uid=1000) by (uid=0) Everything else in the log line is context.
publickeyKey-based authentication. What you want to see. passwordPassword authentication, which means it is still enabled. Worth knowing about even when the login is legitimate. keyboard-interactive/pamUsually multi-factor or a PAM-driven flow. Most of the time it is one of these.
What gives it awayA success from a source address that produced failed attempts shortly before.
ATT&CK T1110What gives it awayA publickey login with a fingerprint that does not match any key you issued, or a login shortly after authorized_keys was modified.
ATT&CK T1098.004What gives it awayA successful login from a source address or country that account has never connected from.
ATT&CK T1078grep 'Accepted' /var/log/auth.log | awk '{print $9, $11}' | sort | uniq -c | sort -rn grep 'Accepted password' /var/log/auth.log index=linux sourcetype=linux_secure "Accepted" | stats count by user src_ip | sort -count Search for 'Accepted' in /var/log/auth.log on Debian and Ubuntu, or /var/log/secure on Red Hat derivatives. On systemd hosts, `journalctl -u sshd | grep Accepted` works regardless of file layout. The `last` command gives a quicker summary of successful logins from the wtmp records.
Publickey means the user authenticated with an SSH key; password means they typed a password. If you believe password authentication is disabled and you see 'Accepted password', it is not disabled — that is worth fixing regardless of whether the login was legitimate.
On most systems, yes — direct root login over SSH is usually disabled deliberately, with administrators signing in as themselves and escalating with sudo. A successful root login means either that policy is not in place or something bypassed it. Check the PermitRootLogin setting in sshd_config.
Last reviewed 28 August 2026