fix crash when using DSA private key to log in with ssh