Код: Выделить всё
sshServer.setPublickeyAuthenticator(publicKeyAuth);
Код: Выделить всё
2024-12-25 17:29:30.882 sshd-SshServer[53600a30](port=2222)-nio2-thread-5 WARN org.apache.sshd.server.session.ServerUserAuthService.warn - handleUserAuthRequestMessage(ServerSessionImpl[null@/127.0.0.1:56562]) Failed (InvalidKeyException) to authenticate using factory method=publickey: Supplied key (org.apache.sshd.common.config.keys.OpenSshCertificateImpl) is not a RSAPublicKey instance
Почему возникает эта проблема? Как я могу это решить?
Подробнее здесь: https://stackoverflow.com/questions/793 ... the-client