Unable to login with local user via ssh with error "input_userauth_request: invalid user"

Solution Verified - Updated -

Issue

  • Unable to login with local user via ssh
  • Found below errors from /var/log/secure
Apr  1 18:26:40 servername sshd[26386]: User testdev from x.x.x.x not allowed because none of user's groups are listed in 'AllowGroups'
Apr  1 18:26:40 servername sshd[26388]: input_userauth_request: invalid user testdev
Apr  1 18:26:40 servername sshd[26386]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=x.x.x.x  user=testdev
Apr  1 18:26:42 servername sshd[26386]: Failed password for invalid user testdev from x.x.x.x port 51470 ssh2
Apr  1 18:26:42 servername sshd[26388]: Connection closed by x.x.x.x

  • Found following errors from /var/log/messages
Apr  1 18:14:18 servername sshd[20895]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=x.x.x.x user=testdev
Apr  1 18:22:48 servername sshd[24698]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=x.x.x.x  user=testdev

Environment

  • Red Hat Enterprise Linux 6

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