charmbracelet / wishlist

The SSH directory ✨
MIT License
1.1k stars 24 forks source link

failed to parse private key (decryption password incorrect) #259

Open DrPyser opened 8 months ago

DrPyser commented 8 months ago

Hi! I'm trying out this cool utility for the first time. Running it locally, I'm having trouble connecting to any of my ssh hosts from my config, as there seems to be an issue using my passphrases to decrypt the ssh key. And that even though I have an ssh agent configured(I also have IdentityFile settings on those hosts in my ssh config).

{"err":"failed to setup a authentication method: failed to parse private key: \"/home/drpyser/.ssh/id_drpyser\": x509: decryption password incorrect","level":"warn","msg":"root cause","time":"2024/01/10 19:51:26"}
{"err":"failed to setup a authentication method: failed to parse private key: \"/home/drpyser/.ssh/id_rsa\": x509: decryption password incorrect","level":"warn","msg":"root cause","time":"2024/01/10 19:58:52"}

I can verify my passphrases are working otherwise.

caarlos0 commented 6 months ago

does it ask you for the password?

that said, it would probably work better with a ed25519 key...