SSH Authentication Failure: Connection Denied Due to 'Permission Denied (publickey, gssapi-keyex, gssapi-with-mic)'
Issue
-
When attempting to establish an
SSHconnection to aRed Hat Enterprise Linuxsystem, users may encounter the followingauthenticationfailure message:# ssh -vvv user@rhel_vm . . . debug1: No more authentication methods to try. root@rhel_vm: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). -
This
errorindicates that theSSHserver is not allowingauthenticationusing the available methods, preventing the user fromloggingin successfully.
Environment
- Red Hat Enterprise Linux (all versions)
- OpenSSH
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.