Connection terminates just after changing the password for user whose password was expired.

Darren Tucker dtucker at
Tue Jun 26 17:07:37 AEST 2018

On 26 June 2018 at 16:54, MAYANK SHARMA <mayank.fit2010 at> wrote:
> Hi All,
> Do anyone have any update/conclusion ?

It's deliberate.  sshd disables some functionality when it detects an
expired password (eg port forwarding) and it's difficult to reliably
detect whether or not a password was successfully changed (there is no
standardization around exit values of passwd, for example).  Requiring
the user to log in again is the simplest way to sure all of the checks
are run again.

Darren Tucker (dtucker at
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

More information about the openssh-unix-dev mailing list