Git keeps asking for SSH password on Mac
Since updating to 2019.3 on Mac OS 10.14.6, every time I push to Git I'm asked for the SSH password even though I have the 'Remember' checkbox checked.
Appearance & Behaviour > System Settings > Passwords is set to save 'in native keychain' (I assume this was imported from my previous version). I've tried one suggestion I found, to lock then unlock the 'logins' group in Keychain, to no avail.
Please sign in to leave a comment.
Would it be possible to enable "KeePass" option and check if it helps?
That seems to work.
Is the keychain option now redundant?
It's not, most probably the Info.plist file got broken during patching and now we can't save data to the keychain.
Reinstallation should help: https://youtrack.jetbrains.com/issue/WI-49528
I am running PhpStorm 2022.3.1 with the following config:
PhpStorm 2022.3.1
Build #PS-223.8214.64, built on December 22, 2022
Subscription is active until May 18, 2023.
Runtime version: 17.0.5+1-b653.23 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 10
Metal Rendering is ON
Registry:
ide.windowSystem.autoShowProcessPopup=true
run.processes.with.pty=TRUE
Non-Bundled Plugins:
com.intellij.ideolog (203.0.30.0)
I have to re-add my SSH password to all remote connections whenever I close PhpStorm and re-open the app. I have reinstalled PhpStorm but that has had no effect. Do you have any other recommendations, please?
@Simonwj
>I have to re-add my SSH password to all remote connections whenever I close PhpStorm and re-open the app.
Please show what you have at "Settings (Preferences on macOS) | Appearance & Behavior | System Settings | Passwords". There is a chance that you have "Do not save" option selected for some reason... Double check this.
Hi,
Appearance & Behaviour > System Settings > Passwords is set to save 'in native keychain'
@Simonwj
A few general thoughts.
Those SSH connections and where they are used:
Do you use the IDE on more than 1 computer at a time? Maybe the entry IDs got reset/changed somehow... But then -- it cannot get new IDs every single time... In any case: try disabling any Settings Sync for the moment. I doubt it can cause this, just checking.
If you enter the password (e.g.when you connect via SFTP or open remote SSH terminal in the IDE) and then do nothing (no changes to the code/etc), exit the IDE and launch again -- will it still forget the passwords?
One more thing to try. Back up your IDE settings (using built-in stuff or manually when IDE is closed) and then try "File | Manage ID Settings | Restore Default Settings..." (it should offer to make a backup/export first anyway) -- will it work OK after that?
Maybe the IDE lost the access to Keychain? Check that and try granting an access again (to the correct IDE version, you may have or had a few of them)... I'm not a Mac user so cannot really help on Keychain part.
No better ideas from me right now. Maybe someone from JetBrains Support has more insights on the possible cause. My quick search on the IDEA Issue Tracker did not return existing tickets that clearly matches the same behaviour (may depend on a search query used though)
P.S. Other than that: 1) "Help | Collect Logs and Diagnostic Data" first and then 2) using "Help | Contact Support..." (or using the "Submit a Request" link at the top of this page) to make a private support ticket when you can attach those logs and provide any additional info that support may ask for later. Logs should provide some insights on this (possibly only after enabling extended logging for that specific subsystem)