Skip to content

Replace password for private key fails #5754

Description

@cyberduck

8878e63 created the issue

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.

Activity

  1. cyberduck commented on Mar 10, 2011

    @cyberduck
    ContributorAuthor

    @dkocher commented

    Make sure you have also checked Use Keychain in the General tab of the Preferences.

  2. cyberduck commented on Mar 11, 2011

    @cyberduck
    ContributorAuthor

    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.

  3. cyberduck commented on Mar 11, 2011

    @cyberduck
    ContributorAuthor

    @dkocher commented

    Please try to repair your login keychain using Keychain Access.app → Keychain First Aid.

  4. cyberduck commented on Mar 14, 2011

    @cyberduck
    ContributorAuthor

    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.

  5. cyberduck commented on Mar 15, 2011

    @cyberduck
    ContributorAuthor

    @dkocher commented

    Can you find any related output in the system.log (/Applications/Utilities/Console.app)?

  6. cyberduck commented on Mar 16, 2011

    @cyberduck
    ContributorAuthor

    8878e63 commented

    When quitting Cyberduck, this message is logged:

    16/03/11 10:08:08 AM	Cyberduck[6365]	Error (addGenericKeychainItemForService:withUsername:password:) - errKCDuplicateItem / errSecDuplicateItem
    
  7. cyberduck commented on Mar 16, 2011

    @cyberduck
    ContributorAuthor

    @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.

  8. cyberduck commented on Mar 17, 2011

    @cyberduck
    ContributorAuthor

    @dkocher commented

    In 0ad3006.

  9. cyberduck commented on Mar 21, 2011

    @cyberduck
    ContributorAuthor

    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.

  10. cyberduck commented on Mar 21, 2011

    @cyberduck
    ContributorAuthor

    @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!

  11. cyberduck commented on Mar 21, 2011

    @cyberduck
    ContributorAuthor

    @dkocher commented

    This regression was introduced in ee11c0f.

  12. locked as resolved and limited conversation to collaborators on Nov 26, 2021
  13. added theissue type on Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sftpSFTP Protocol Implementation

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions