パスワードを変更すると ssh がセッションを終了する

Solution Verified - Updated -

Issue

  • パスワードを変更すると ssh がセッションを終了します。
  • 強制的にパスワードを変更するとすぐに sshd が切断します。
  • ユーザーパスワードの期限が切れると、sshd は、ユーザーにパスワードを変更するように促すメッセージを表示します。セッションは、警告またはメッセージが表示されずに SSHD によって閉じるため、エンドユーザーには通知されません。
# ssh nc@linux1
nc@linux1's password: 
You are required to change your password immediately (root enforced)
WARNING:Your password has expired.
You must change your password now and login again!
Changing password for user nc.
(current) UNIX password: 
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.
Connection to localhost closed.

Environment

  • Red Hat Enterprise Linux 5、6
  • OpenSSH sshd
  • 有効期限が切れたユーザーパスワード

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.