vorburger opened a new issue, #747: URL: https://github.com/apache/mina-sshd/issues/747
### Version 2.15.0 ### Bug description On Java 21: ```java public class HostKeyPairProvider implements KeyPairProvider { @Override public Iterable<KeyPair> loadKeys(SessionContext session) throws IOException, GeneralSecurityException { return singleton(generateNewKeyPair()); } private KeyPair generateNewKeyPair() throws NoSuchAlgorithmException { var keyPairGenerator = KeyPairGenerator.getInstance("Ed25519"); return keyPairGenerator.generateKeyPair(); } } // ... server.setKeyPairProvider(new HostKeyPairProvider()); ``` On connection, this causes: `[sshd-SshServer[48075da3](port=2222)-nio2-thread-1] WARN org.apache.sshd.server.session.ServerSessionImpl - exceptionCaught(ServerSessionImpl[null@/[0:0:0:0:0:0:0:1]:43592])[state=Opened] IllegalArgumentException: Not an EDDSA public key: algorithm = Ed25519, unparsed keybits = ` How do you use an `Ed25519` host key with mina-sshd? (Instead of e.g. `RSA`, with which it works for me.) ### Actual behavior Error. ### Expected behavior No Error. ### Relevant log output ```Shell ``` ### Other information _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org