Change password

Hello People,

How can i make linux's ssh ask a new password when the user's password is expired?

I have some linux servers with this feature working, but other aren't.
I've already tried to use chage -D 0 and other arguments, but it's not working as I expected.

I am not sure it is ssh, but rather the PAM module on the server side, that can force an intra-login password change. My man page suggests "chage -d 0" or, if there is a lockout limit and a max password age of N days, "chage -d <yyyy-mm-dd_N+1_days_back". Man Page for chage (linux Section 1) - The UNIX and Linux Forums