Take the 2-minute tour ×
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.

When booting my laptop today I found that ssh (openssh) simply refuses to accept my passphrase when reading my private key. My only idea of how that could've happened is if the HDD has somehow corrupted the key, but I figure that if that is the case I'd probably notice system instability in other ways too.

This isn't that much of a chore for me, since I can access all the places where that key is used using some other means, and I've been meaning to generate a new (bigger) key anyway. I'd still like to figure out what happened though, so any ideas on what could've caused this are welcome. I'm absolutely sure that I'm not typoing the passphrase.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Two ideas:

First, try to import the key into the ssh-agent with ssh-add $keyfile to be sure it is really a problem with the keyfile and not something about the server.

Second, fetch a copy of your private key from your backup and use something like cmp to check, whether the file really changed.

share|improve this answer
    
Oops, I completely forgot that I asked this question earlier.. anyway, I tried both ssh and ssh-add, so it's definitely something local. Good idea about comparing with a backup of the key, but unfortunately I don't have any such backup accessible right now. I'll check when I get access to such a backup. This is probably as good an answer that this question could get, so I'll mark it as accepted; thanks. –  FireFly Apr 13 '13 at 15:51

Your Answer

 
discard

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.