Skip to content

Adding a private key doesn't prompt for its password #17953

@gabriel-r

Description

@gabriel-r

Describe the bug
I'm adding a bookmark for a server that uses SFTP, with a key pair that requires a password. However, the password is never required and the server rejects the connection.

To Reproduce
Steps to reproduce the behavior:

  1. Generate a ssh-ed25519 key pair. Enter a password when prompted, e.g. 123abc
  2. Set it up on the server side, test the connection in the terminal with SSH
  3. Add a bookmark for the server in Cyberduck
  4. Select the key in the SSH Private Key field

Expected behavior
A prompt for the password, as described here https://www.sfc.itc.keio.ac.jp/en/network_cns_remote_scp_cyberduck.html

Screenshots

Image

Desktop (please complete the following information):

  • OS: 15.7.4 (24G517)
  • Version 9.4.1 (44384)

Log Files

2026-03-18 13:40:04,417 [sshj-Reader-/77.42.30.157:22-1773837603751] ERROR net.schmizz.sshj.transport.TransportImpl - Dying because - Too many authentication failures
net.schmizz.sshj.transport.TransportException: Too many authentication failures
	at net.schmizz.sshj.transport.TransportImpl.gotDisconnect(TransportImpl.java:549)
	at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:501)
	at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:113)
	at net.schmizz.sshj.transport.Decoder.received(Decoder.java:200)
	at net.schmizz.sshj.transport.Reader.run(Reader.java:60)
2026-03-18 13:40:04,419 [Thread-109] ERROR net.schmizz.concurrent.Promise - <<authenticated>> woke to: net.schmizz.sshj.userauth.UserAuthException: Too many authentication failures
2026-03-18 13:40:05,245 [sshj-Reader-/77.42.30.157:22-1773837604633] ERROR net.schmizz.sshj.transport.TransportImpl - Dying because - Too many authentication failures
net.schmizz.sshj.transport.TransportException: Too many authentication failures
	at net.schmizz.sshj.transport.TransportImpl.gotDisconnect(TransportImpl.java:549)
	at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:501)
	at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:113)
	at net.schmizz.sshj.transport.Decoder.received(Decoder.java:200)
	at net.schmizz.sshj.transport.Reader.run(Reader.java:60)
2026-03-18 13:40:05,246 [Thread-109] ERROR net.schmizz.concurrent.Promise - <<authenticated>> woke to: net.schmizz.sshj.userauth.UserAuthException: Too many authentication failures

Additional context

  • I have enabled the SSH Keychain integration ssh-add --apple-use-keychain ~/.ssh/<key>
  • I tried deactivating the Keychain in Cyberduck, no change

Metadata

Metadata

Assignees

No one assigned

    Labels

    sftpSFTP Protocol Implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions