SSH Authentication Failure Messages: RHEL 7 Shows "Authentication Failed" While RHEL 8 Shows "Connection Closed" Despite Same Login Failure
Issue
-
SSH does not return
"Authentication failed."
message. -
"Authentication failed"
prompt is not presented afterunsuccessful
login -
Red Hat Enterprise Linux
8 SSH client does not show"Authentication failed."
prompt afterunsuccessful
logindenied
byPAM
pam_access. Red Hat Enterprise Linux
7 client shows theprompt
correctly, leading to userconfusion
onRed Hat Enterprise Linux
8+.
Environment
- Red Hat Enterprise Linux 8
- OpenSSH
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.