Fail to change password via ssh after user password expired

Solution Verified - Updated -

Issue

Fail or error to change the password after password expired:

login as: testuser
Using keyboard-interactive authentication.
Password:
Using keyboard-interactive authentication.
You are required to change your password immediately (root enforced)
Changing password for testuser.
(current) UNIX password:
Using keyboard-interactive authentication.
New password:
Using keyboard-interactive authentication.
Retype new password:
Access denied
Using keyboard-interactive authentication.
Password:

Environment

  • Red Hat Enterprise Linux (RHEL) 6, 7, 8

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