System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Putty closes after password change

SOLVED
Go to solution
Mike Patterson
Frequent Advisor

Putty closes after password change

I'm working on a new project as HP-UX SA and I'm seeing something new to me:

I create a new user.
I create a temp. password with passwd.
I force a password change with passwd -f

When the user logs in the first time, they give the temp password as the old password, then provide a new password (twice) as usual.

What's new to me is Putty instantly closes the entire session window. The user can open a new Putty session and login normally with the new password. In my past experience, after the users changes his password, they should just return to a prompt - not tossed out of Putty. Ideas?

Thanks. - Mike
7 REPLIES
Mike Patterson
Frequent Advisor

Re: Putty closes after password change

I forgot to say that the Putty session connects with ssh.
mvpel
Trusted Contributor

Re: Putty closes after password change

What version of Secure Shell are you running on the system? Is it the HP T1471A build or OpenSSH? Did you perhaps recently start using PAM? Any recent changes to your config?
Mike Patterson
Frequent Advisor

Re: Putty closes after password change

swlist | grep -i secure
SecureShell A.05.10.026 HP-UX Secure Shell

I'm brand-new to this IT shop. I'm told by other SAs that it has Putty always done this (not my experience with Putty). The HP-UX configs do not change much according to them.
Mike Patterson
Frequent Advisor

Re: Putty closes after password change

Also, we are running 11.31 at Sept 09 patch level.
Earl_Crowder
Trusted Contributor
Solution

Re: Putty closes after password change

i believe it's a function of newer SSHD and pam.

3.6 doesn't have it:
$/opt/ssh/sbin/sshd -v 2>&1 | grep -i version
sshd version OpenSSH_3.6.1p2
$strings -a /opt/ssh/sbin/sshd | grep -i again


5.30 does
$/opt/ssh/sbin/sshd -v 2>&1 | grep -i version
HP-UX Secure Shell-A.05.30.008, HP-UX Secure Shell version
$strings -a sshd | grep -i again
You must change your password now and login again!
Steve Post
Trusted Contributor

Re: Putty closes after password change

You have them forced to reset their password. They change it. Then they immediately get kicked out. This is normal.

I don't think it has anything to do with putty. If you telneted into the box from another internal system, you would see the same thing. I always thought that was a standard part of forcing a user to change their password.

Mike Patterson
Frequent Advisor

Re: Putty closes after password change

Earl -

I'm guessing that you are closest to being right on this behaviour. I've used ssh for years on older RISC systems an never had the window slam closed after changing my password the first time. I must be later versions. Thanks.

- Mike P