Update ssh key to use new passphrase
Answered
I've changed my SSH keys on my various computers (a thing I do yearly). The new SSH keys have passphrases that I also change yearly.
Having changed the keys, manual git pulling/pushing works as expected. However, with PHPStorm, when I attempt to push or pull i get:
`Invalid passphrase for the key ... (3 attempts)`
I have *hundreds* of passwords stored in the database for auto ftp/pushing/mysql logins.
How do I simply get a prompt for this one password to change?
- Computers in use: W10, W8.
- Using github.
Thanks
Rick
Please sign in to leave a comment.
Does switching to the native SSH executable help?
Settings | Version Control | Git
No, although it's a slightly different error:
That seems to be a issue on our side: https://youtrack.jetbrains.com/issue/IDEA-184450. Please check if a workaround suggested in comments helps.
Native mode does not allow handling any prompts at all. With native mode, one needs to use a key without a passphrase, or load it to ssh-agent first.
The Built-in SSH mode should prompt for the passphrase, and it is a bug it does not.
I see you opened an issue on YouTrack, please follow for updates.
https://youtrack.jetbrains.com/issue/IDEA-184450
I can confirm that the workaround is successful. From the looks of the ticket I made has been accepted and should be fixed at some point. To be clear of workaround:
This then calls the a functioning dialogue box for the key.
Thanks all.
A solution that worked for me: under Settings > Appearance & Behavior > System Settings > Passwords, I switched from "In native keychain" to "in keypass". Then I was prompted for my rsa key's password upon my next `git pull`.
Admittedly, unlike the OP, I only had a single password to worry about. For those with several passwords, or who want to continue using their native keychain, this may be a bad idea.