SSH Login
partial
2x weight
measured
SSH partial. scoring-engine users' public keys missing or wrong permissions
The following users failed to authenticate with their public key: simone_weil, claude_chevalley, vetomo
Events
6
Pts per check
2.8
Pts missed
16.7
Teams hit
1/13
Authority mappings
Which work roles, knowledge units, and EWU courses this error pattern touches. Hover for context, click to drill in.
DCWF roles:
CE-463 Host Analyst
CS-462 Control Systems Security Specialist
CS-521 Cyber Defense Infrastructure Support Specialist
CS-531 Cyber Defense Incident Responder
EN-211 Forensics Analyst
IT-411 Technical Support Specialist
IT-451 System Administrator
What the message means
The scoring engine connected to sshd but could not authenticate some of its seeded users (e.g. `simone_weil`, `nills`, `todd_k`). Either their public keys are missing from `~/.ssh/authorized_keys`, or the key/perms got altered during hardening. This is a 'partial' status. some users still work, so the service isn't fully down.
Why the service is down
- Someone wiped `authorized_keys` during SSH hardening (classic mistake).
- The user's home or `.ssh` dir has wrong ownership/permissions and sshd refuses to trust it.
- The key file itself has wrong permissions (must be 600).
- `AllowUsers` / `AllowGroups` in sshd_config excludes these users.
- PubkeyAuthentication is disabled.
Commands in order
-
1. 1. Does sshd allow pubkey auth?
grep -E 'PubkeyAuthentication|PasswordAuthentication' /etc/ssh/sshd_configExpectPubkeyAuthentication yesInterpret and nextIf no/missing: set `PubkeyAuthentication yes`, restart sshd. -
2. 2. Does the user exist?
id simone_weilExpectuid=NNNN(simone_weil) gid=.Interpret and next`id: no such user` = user was deleted. Recreate from packet info. -
3. 3. Do they have an authorized_keys file?
ls -la /home/simone_weil/.ssh/authorized_keysExpect-rw------- 1 simone_weil simone_weil . authorized_keysInterpret and nextMissing = key was wiped; restore from `/root/ssh-keys-backup/`. Wrong perms = see step 4. -
4. 4. Fix the permission triad (common silent failure)
chown -R simone_weil:simone_weil /home/simone_weil/.ssh chmod 700 /home/simone_weil/.ssh chmod 600 /home/simone_weil/.ssh/authorized_keysExpectNo errorsInterpret and nextsshd refuses to use pubkey if these are loose. This is often the actual bug. -
5. 5. Confirm from sshd's perspective
sshd -T | grep -iE 'pubkeyauthentication|authorizedkeys'Expectpubkeyauthentication yes; authorizedkeysfile .ssh/authorized_keysInterpret and nextIf authorizedkeysfile is non-default, check that path. -
6. 6. Try a manual SSH attempt and read the auth log
tail -20 /var/log/auth.logExpectLine naming the accepted publickey for simone_weilInterpret and next`Authentication refused: bad ownership or modes` = redo step 4 for that user.
Decision tree
Answer each question to route to the right fix.
Q: Does the user exist in /etc/passwd?
Yes:
Q: Does authorized_keys exist with perms 600?
Yes:
Q: Is ~/.ssh 700 and owned by the user?
Yes:
Check sshd_config for PubkeyAuthentication + AllowUsers.
No:
Fix ownership and mode.
No:
Restore from backup; chmod 600; chown user:user.
No:
Recreate the user from packet info.
External references
- NCAE Cyber Games. official rules and scoring
- OpenBSD sshd_config(5) man page
- OpenSSH authorized_keys(5)
-
NCAE video 19. Persistence: SSH Public Key
Red-team's view of the same mechanism. useful context for blue team.
Other patterns on this service
- 2,502.8 failure Failed to connect to host: IP
- 44.4 partial The following users failed to authenticate with their public key: nills, vetomo
- 44.4 partial The following users failed to authenticate with their public key: vetomo, nills
- 36.1 partial The following users failed to authenticate with their public key: simone_weil, todd_k
- 36.1 partial The following users failed to authenticate with their public key: vetomo, todd_k
- 30.6 partial The following users failed to authenticate with their public key: claude_chevalley
- 27.8 partial The following users failed to authenticate with their public key: claude_chevalley, simon.
- 27.8 partial The following users failed to authenticate with their public key: nills, simone_weil
- 27.8 partial The following users failed to authenticate with their public key: nills, todd_k
- 25 partial The following users failed to authenticate with their public key: simone_weil, vetomo, cl.