Translated message

A translation of this page exists in English.

パスワードを変更すると 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, 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