sshd: User xxxx from gateway not allowed because not listed in AllowUsers

Solution Verified - Updated -

Issue

  • Received following error message during ssh login:

    client : 
    Permission denied, please try again
    
    server :
    sshd[xxxx]: Failed password for invalid user xxxxx from xx.xx.xx.xxx port xxx ssh2
    sshd[xxxx]: Connection closed by xx.xx.xx.xxx port xxx [preauth]
    sshd[xxxx]: User xxxxx from gateway not allowed because not listed in AllowUsers
    sshd[xxxx]: input_userauth_request: invalid user xxxxx [preauth]
    unix_chkpwd[xxxx]: password check failed for user (xxxxx)
    

Environment

  • Red Hat Enterprise Linux 7,8,9
  • openssh

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content