When I try to change my key passphrase I get a Bad passphrase error. If I generate a new key with empty passphrase I receive no error, but if I generate a new key with a passphrase I get the Bad passphrase error. [sandino@ingrata sandino] ssh-keygen -f .ssh/id_dsa.test -p Key has comment '.ssh/id_dsa.test' Enter new passphrase (empty for no passphrase): eaeaea Enter same passphrase again: eaeaea Your identification has been saved with the new passphrase. [sandino@ingrata sandino] ssh-keygen -f .ssh/id_dsa.test -p Enter old passphrase: eaeaea Bad passphrase.
Can you read the key with openssl? Try $ openssl dsa -in .ssh/id_dsa.test -modulus -noout
OpenSSL fails to read the key [sandino@ingrata sandino] openssl dsa -in .ssh/id_dsa.test -modulus -noout read DSA key unable to load Key 3961:error:09065067:PEM routines:LOAD_IV:bad iv chars:pem_lib.c:504: Should I reinstall OpenSSL?
Yes, rebuild OpenSSL, and do "make tests" once it's built to make sure it's working properly. If "make tests" passes, install it and rebuild OpenSSH with it.
I have rebuilt OpenSSL and the error is no longer present, itworks now.
OK then, sure looks like and OpenSSL problem, closing.
Mass change of RESOLVED bugs to CLOSED