Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

on one of the boxes I don't control at work I use ssh keys to log in. Our passwords are set to expire after a few months. What happens if I don't reset my password and it expires? will I still be able to login? Does what happens depend on some sshd setting? or some pam setting?

share|improve this question
up vote 10 down vote accepted

Under default behavior, you will still be able to log in using your ssh key, but the system administrator is free to change this behavior using pam or other methods. OpenSSH doesn't care about the expiration date on your password if it's not using password authentication, but pam can be set up to check password expiration even after sshd has authenticated your key. It could probably even be set up to force you to enter and change your expired password before handing you the shell prompt. For the best answer, ask your sysadmin.

share|improve this answer
around here I'm just as likely to get the answer "you're not supposed to be using key auth" as I am "I don't know" I'd never get an actual answer. – xenoterracide Jan 19 '11 at 8:53
In that case I'd bet the behavior is all default. If you really weren't supposed to be using key auth, then you wouldn't be able to get in that way. ;) – Jander Jan 20 '11 at 1:22
probably ;) and that's been my opinion when people have said that. I think truthfully what the mean is you aren't supposed be using keyauth with a a passphrase, because too many people do that, instead of like me, who uses keychain I can type the password once a day, more than that is nuts. – xenoterracide Jan 20 '11 at 12:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.