OpenSSH authentication fails with GSSAPIAuthentication set to no globally and yes in a Match block
Issue
In /etc/ssh/sshd_config the GSSAPIAuthentication is set globally to no:
GSSAPIAuthentication no
A Match block is present for which allows GSSAPIAuthentication:
Match User <username>
GSSAPIAuthentication yes
PubkeyAuthentication yes
HostbasedAuthentication no
PasswordAuthentication no
RSAAuthentication no
However, the authentication always fails for the matching user.
Environment
- Red Hat Enterprise Linux 7
opensshwithUsePrivilegeSeparation sandbox(the default), andGSSAPIAuthentication noset globally in/etc/ssh/sshd_config
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.