I enabled password expiration on my Debian 8 server and today my password expired. When I login through SSH, the server forces me to change my password now. I had to enter the old password, specify a new password and also confirm my new password. After entering everything correctly, the SSH session is closed. (SSH Client disconnects) The password didn't change, it's the old expired password again. So I'm forced to change the password again, without success.
My issue is the same like PuTTY Session Closed on Expired Password Over SSH Connection but I'm unable to administrate the server because there is no other account to login.

  • It is normal that the session closes after the change of password, but you should be able to login with a new password (unless it will expire immediately). – Jakuje Dec 12 '16 at 21:14
  • 1
    Check your system logs. – Michael Hampton Dec 12 '16 at 21:18
  • Yes, but the password didn't change at all. It's the old password again, not the new one. So, when logging in again, I'm forced to change the password again, it's an infinite loop and the password wont change. @MichaelHampton How? - There is no other account to login, only this one with expired password. – TrustedCreeper Dec 12 '16 at 21:19
  • Does this mean you're locked out of your server? – Mike Sherrill 'Cat Recall' Dec 12 '16 at 21:19
  • 1
    Login as root, or use the console, or a rescue system, or mount the hard drive to another computer, or something... – Michael Hampton Dec 12 '16 at 21:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.