Repository navigation
Replace password for private key fails #5754
Description
Activity
@dkocher commented
Make sure you have also checked Use Keychain in the General tab of the Preferences.
8878e63 commented
Replying to [comment:1 dkocher]:
Make sure you have also checked Use Keychain in the General tab of the Preferences.
"Use Keychain" in preference is already ticked.
Deleting all bookmarks and reimporting or removing the app completely doesn't seem to help either.
If you connect, disconnect, and then connect again without exiting the app, it works. However, once you're closed Cyberduck, if you're try to open the same bookmarked sftp connection, it will ask for the passphrase every time.
Please reopen the ticket.
@dkocher commented
Please try to repair your login keychain using Keychain Access.app → Keychain First Aid.
8878e63 commented
Repaired using "Keychain First Aid" doesn't help.
The issue only occurred by installing the last update. It is very likely that there is something wrong with the latest version of the app, given that all other factors unchanged. Please reopen the ticket.
@dkocher commented
Can you find any related output in the
system.log(/Applications/Utilities/Console.app)?8878e63 commented
When quitting Cyberduck, this message is logged:
16/03/11 10:08:08 AM Cyberduck[6365] Error (addGenericKeychainItemForService:withUsername:password:) - errKCDuplicateItem / errSecDuplicateItem@dkocher commented
Replying to [comment:6 Danny Glue]:
When quitting Cyberduck, this message is logged:
This leads me to think that you are connecting using public key authentication and the password for the private key has changed or the key with the same name has been replaced and has new password. You can workaround this by removing the saved previous password from the Keychain manually. Search for the hostname in Keychain Access.app and remove the item that has the filename of your private key set in the account field.
8878e63 commented
Unfortunately, the workaround does not work. After removing the existing key from the key chain application, I can see a new key being saved after entering the passphrase when connecting. When exiting Cyberduck, no error message is captured in the Console app.
Problem persists in nightly 3b94680.
@dkocher commented
Replying to [comment:9 Danny Glue]:
Unfortunately, the workaround does not work. After removing the existing key from the key chain application, I can see a new key being saved after entering the passphrase when connecting. When exiting Cyberduck, no error message is captured in the Console app.
Problem persists in nightly 3b94680.
Additional fix In 1cf8b10 not looking up password for private keys. Thanks for testing and reopening this ticket!
- locked as resolved and limited conversation to collaborators
on Nov 26, 2021
Cyberduck 4.0.1 is asking for the SSH passphrase for SFTP connections every time despite the "Add to Keychain" option being ticked during previous connections.