-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hello there!
First of all: Thanks for the great work!
I have a question: I created an authorized_keys file in the well-known format and wrote it to the SshDaemon directory. According to ADB the keys are also read successfully.
When trying to connect, I get the following stacktrace (some and authentication falls back to keyboard-interactive:
04-05 12:25:52.185 24361 29871 I System.out: 3441394 [sshd-SshServer[d4e6183](port=2222)-nio2-thread-3] WARN org.apache.sshd.server.session.ServerUserAuthService - handleUserAuthRequestMessage(ServerSessionImpl[null@/10.2.0.2:45410]) Failed (SshException) to authenticate using factory method=publickey: EdDSA provider not supported
04-05 12:25:52.185 24361 29871 I System.out: org.apache.sshd.common.SshException: EdDSA provider not supported
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.util.buffer.Buffer.getRawPublicKey(SourceFile:2)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.util.buffer.Buffer.getRawPublicKey(SourceFile:1)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.server.auth.pubkey.UserAuthPublicKey.doAuth(Unknown Source:55)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.server.auth.AbstractUserAuth.auth(Unknown Source:14)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.server.session.ServerUserAuthService.handleUserAuthRequestMessage(Unknown Source:533)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.server.session.ServerUserAuthService.process(Unknown Source:24)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.session.helpers.CurrentService.process(Unknown Source:6)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.session.helpers.AbstractSession.doHandleMessage(Unknown Source:83)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.session.helpers.AbstractSession.lambda$handleMessage$0(Unknown Source:0)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.session.helpers.AbstractSession.d0(Unknown Source:0)
04-05 12:25:52.185 24361 29871 I System.out: at e5.a.call(Unknown Source:23)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.util.threads.ThreadUtils.runAsInternal(SourceFile:2)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.session.helpers.AbstractSession.handleMessage(Unknown Source:6)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.session.helpers.AbstractSession.decode(Unknown Source:433)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(Unknown Source:29)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(Unknown Source:4)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.io.nio2.Nio2Session.handleReadCycleCompletion(Unknown Source:66)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(SourceFile:1)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(SourceFile:2)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.lambda$completed$0(Unknown Source:0)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.a(Unknown Source:0)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.io.nio2.a.run(Unknown Source:19)
04-05 12:25:52.185 24361 29871 I System.out: at java.security.AccessController.doPrivileged(AccessController.java:43)
04-05 12:25:52.185 24361 29871 I System.out: at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Unknown Source:5)
04-05 12:25:52.185 24361 29871 I System.out: at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
04-05 12:25:52.185 24361 29871 I System.out: at sun.nio.ch.Invoker$2.run(Invoker.java:221)
04-05 12:25:52.185 24361 29871 I System.out: at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
04-05 12:25:52.185 24361 29871 I System.out: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
04-05 12:25:52.186 24361 29871 I System.out: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
04-05 12:25:52.186 24361 29871 I System.out: at java.lang.Thread.run(Thread.java:1012)
04-05 12:25:52.186 24361 29871 I System.out: Caused by: java.security.NoSuchAlgorithmException: EdDSA provider not supported
04-05 12:25:52.186 24361 29871 I System.out: at org.apache.sshd.common.util.security.SecurityUtils.generateEDDSAPublicKey(Unknown Source:23)
04-05 12:25:52.186 24361 29871 I System.out: at org.apache.sshd.common.util.buffer.keys.ED25519BufferPublicKeyParser.getRawPublicKey(Unknown Source:13)
04-05 12:25:52.186 24361 29871 I System.out: at org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser$2.getRawPublicKey(Unknown Source:24)
04-05 12:25:52.186 24361 29871 I System.out: ... 30 more
Also: Why do I see this message 122 times per connection attempt? 😨
The app seems to read the authorized_keys file 21 times as well during startup:
$ adb logcat | grep authorized_keys
04-05 12:51:58.676 31433 31433 I System.out: 307 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:58.676 31433 31433 I System.out: 307 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:58.676 31433 31433 I System.out: 307 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:58.890 31433 31433 I System.out: 522 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:58.891 31433 31433 I System.out: 522 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:58.891 31433 31433 I System.out: 522 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:58.891 31433 31433 I System.out: 522 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:58.891 31433 31433 I System.out: 522 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:58.891 31433 31433 I System.out: 522 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:58.891 31433 31433 I System.out: 522 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.059 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.059 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.060 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.060 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.060 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.060 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.060 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.060 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.060 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.060 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
04-05 12:51:59.060 31433 31433 I System.out: 691 [main] DEBUG a3.a - Try to add authorized key file /storage/emulated/0/SshDaemon/authorized_keys
Am I mis-reading the logs?
Metadata
Metadata
Assignees
Labels
No labels