Skip to content

Unsupported key type (ssh-ed25519) after updating to 7.2.0 #148

@JanecekPetr

Description

@JanecekPetr

Version

7.2.0

Operating System

MacOS

Bug description

Not sure if this is JGit or Apache Mina SSHD. I'm on Mac OS Sequoia 15.3.1, using Java Temurin 21 and a id_ed25519 keypair that has worked well for me in the past.

After updating to eclipse 2025-03 (4.35.0), with JGit 7.2.0 I cannot do any operations on my GitHub remotes. Is this expected?

Actual behavior

No Git remote operation works with my id_ed25519 keypair.

Expected behavior

Pull!

Relevant log output

eclipse.buildId=4.35.0.20250306-0811
java.version=21
java.vendor=Eclipse Adoptium
BootLoader constants: OS=macosx, ARCH=aarch64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product -keyring /Users/pj/.eclipse_keyring
Command-line arguments:  -os macosx -ws cocoa -arch aarch64 -product org.eclipse.epp.package.java.product -keyring /Users/pj/.eclipse_keyring

org.eclipse.m2e.logback.appender
Warning
Wed Mar 12 17:30:21 CET 2025
Unsupported key type (ssh-ed25519) in /Users/pj/.ssh/id_ed25519

java.security.NoSuchAlgorithmException: Unsupported key type (ssh-ed25519) in /Users/pj/.ssh/id_ed25519
	at org.apache.sshd.common.config.keys.loader.openssh.OpenSSHKeyPairResourceParser.readPublicKey(OpenSSHKeyPairResourceParser.java:221)
	at org.apache.sshd.common.config.keys.loader.openssh.OpenSSHKeyPairResourceParser.extractKeyPairs(OpenSSHKeyPairResourceParser.java:133)
	at org.apache.sshd.common.config.keys.loader.AbstractKeyPairResourceParser.extractKeyPairs(AbstractKeyPairResourceParser.java:198)
	at org.apache.sshd.common.config.keys.loader.AbstractKeyPairResourceParser.extractKeyPairs(AbstractKeyPairResourceParser.java:167)
    [...]
	at org.eclipse.jgit.internal.transport.sshd.CachingKeyPairProvider.loadKey(CachingKeyPairProvider.java:131)
    [...]


and then:


org.eclipse.core.runtime.CoreException: git@github.com:alicetechnologies/alice-common.git: Cannot log in at github.com:22
publickey: no keys to try
	at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:114)
	at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.performJob(FetchOperationUI.java:137)
	at org.eclipse.egit.ui.internal.jobs.RepositoryJob.run(RepositoryJob.java:59)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.jgit.api.errors.TransportException: git@github.com:alicetechnologies/alice-common.git: Cannot log in at github.com:22
publickey: no keys to try
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:249)
	at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:134)
	at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:111)
	... 3 more
Caused by: org.eclipse.jgit.errors.TransportException: git@github.com:alicetechnologies/alice-common.git: Cannot log in at github.com:22
publickey: no keys to try
	at org.eclipse.jgit.transport.sshd.SshdSession.connect(SshdSession.java:181)
    [...]
	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1458)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:238)
	... 5 more
Caused by: org.apache.sshd.common.SshException: No more authentication methods available
	at org.apache.sshd.common.future.AbstractSshFuture.verifyResult(AbstractSshFuture.java:141)
	[...]
	at org.eclipse.jgit.transport.sshd.SshdSession.connect(SshdSession.java:171)
	... 15 more
Caused by: org.apache.sshd.common.SshException: No more authentication methods available
	at org.apache.sshd.client.session.ClientUserAuthService.tryNext(ClientUserAuthService.java:441)
	at org.apache.sshd.client.session.ClientUserAuthService.processUserAuth(ClientUserAuthService.java:375)
	at org.apache.sshd.client.session.ClientUserAuthService.process(ClientUserAuthService.java:270)
    [...]

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions