error: AuthorizedKeysCommandUser "xxx" not found: Success
Issue
Unable to log in via SSH:
$ ssh user@server
user@192.168.121.83: Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
The following error can be seen in the server logs:
# journalctl -u sshd
Dec 06 07:18:43 server sshd[3980]: error: AuthorizedKeysCommandUser "admin" not found: Success
Dec 06 07:18:43 server sshd[3980]: Connection closed by 192.168.121.1 port 41662 [preauth]
Environment
- Red Hat Enterprise Linux 7.9
- Red Hat Enterprise Linux 8.9
- Red Hat Enterprise Linux 9.3
- openssh-7.4p1-23.el7_9
- openssh-8.0p1-19.el8_8
- openssh-8.7p1-34.el9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.