datavane / datasophon

The next generation of cloud-native big data management expert , Aims to help users rapidly build stable, efficient, and scalable cloud-native platforms for big data.
https://datasophon.github.io/datasophon-website/
Apache License 2.0
1.01k stars 363 forks source link

[Bug] [Module Name] No more authentication methods available #499

Open geekyouth opened 5 months ago

geekyouth commented 5 months ago

Search before asking

What happened

datasophon  | [ERROR] [01/18/2024 02:03:56.876] [datasophon-akka.actor.default-dispatcher-18] [akka://datasophon/user/hostActor-u114] org.apache.sshd.common.SshException: No more authentication methods available
datasophon  | java.lang.RuntimeException: org.apache.sshd.common.SshException: No more authentication methods available
datasophon  |   at com.datasophon.api.utils.MinaUtils.openConnection(MinaUtils.java:67)
datasophon  |   at com.datasophon.api.master.HostConnectActor.onReceive(HostConnectActor.java:55)
datasophon  |   at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:165)
datasophon  |   at akka.actor.Actor$class.aroundReceive(Actor.scala:502)
datasophon  |   at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:95)
datasophon  |   at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
datasophon  |   at akka.actor.ActorCell.invoke(ActorCell.scala:495)
datasophon  |   at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
datasophon  |   at akka.dispatch.Mailbox.run(Mailbox.scala:224)
datasophon  |   at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
datasophon  |   at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
datasophon  |   at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
datasophon  |   at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
datasophon  |   at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
datasophon  | Caused by: org.apache.sshd.common.SshException: No more authentication methods available
datasophon  |   at org.apache.sshd.common.future.AbstractSshFuture.verifyResult(AbstractSshFuture.java:127)
datasophon  |   at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:39)
datasophon  |   at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:32)
datasophon  |   at org.apache.sshd.common.future.VerifiableFuture.verify(VerifiableFuture.java:43)
datasophon  |   at com.datasophon.api.utils.MinaUtils.openConnection(MinaUtils.java:62)
datasophon  |   ... 13 more
datasophon  | Caused by: org.apache.sshd.common.SshException: No more authentication methods available
datasophon  |   at org.apache.sshd.client.session.ClientUserAuthService.tryNext(ClientUserAuthService.java:379)
datasophon  |   at org.apache.sshd.client.session.ClientUserAuthService.processUserAuth(ClientUserAuthService.java:315)
datasophon  |   at org.apache.sshd.client.session.ClientUserAuthService.process(ClientUserAuthService.java:252)
datasophon  |   at org.apache.sshd.common.session.helpers.CurrentService.process(CurrentService.java:109)
datasophon  |   at org.apache.sshd.common.session.helpers.AbstractSession.doHandleMessage(AbstractSession.java:591)
datasophon  |   at org.apache.sshd.common.session.helpers.AbstractSession.lambda$handleMessage$0(AbstractSession.java:522)
datasophon  |   at org.apache.sshd.common.util.threads.ThreadUtils.runAsInternal(ThreadUtils.java:68)
datasophon  |   at org.apache.sshd.common.session.helpers.AbstractSession.handleMessage(AbstractSession.java:521)
datasophon  |   at org.apache.sshd.common.session.helpers.AbstractSession.decode(AbstractSession.java:1639)
datasophon  |   at org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(AbstractSession.java:482)
datasophon  |   at org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:64)
datasophon  |   at org.apache.sshd.common.io.nio2.Nio2Session.handleReadCycleCompletion(Nio2Session.java:407)
datasophon  |   at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:380)
datasophon  |   at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:375)
datasophon  |   at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.lambda$completed$0(Nio2CompletionHandler.java:38)
datasophon  |   at java.security.AccessController.doPrivileged(Native Method)
datasophon  |   at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:37)
datasophon  |   at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
datasophon  |   at sun.nio.ch.Invoker$2.run(Invoker.java:218)
datasophon  |   at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
datasophon  |   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
datasophon  |   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
datasophon  |   at java.lang.Thread.run(Thread.java:750)

What you expected to happen

ok

How to reproduce

ssh-keygen -m PEM -t rsa
....
Your public key has been saved in /root/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:H7RnujQaG63053Xr3SIl7SMfB5meqybMYfLw6BnE9p0 root@datasophon
The key's randomart image is:
+---[RSA 3072]----+
|                 |
|                 |
|          .      |
|       . . .   o |
|        S o o.+  |
|       oo+o*.ooo |
|        =XB.E+= o|
|       ..@*o=.+=+|
|       .* o=o=+=o|
+----[SHA256]-----+
root@datasophon:/datasophon# ssh-copy-id
Usage: /usr/bin/ssh-copy-id [-h|-?|-f|-n] [-i [identity_file]] [-p port] [-F alternative ssh_config file] [[-o <ssh -o options>] ...] [user@]hostname
        -f: force mode -- copy keys without trying to check if they are already installed
        -n: dry run    -- no keys are actually copied
        -h|-?: print this help
root@datasophon:/datasophon# ssh-copy-id u112
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@u112's password:

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 'u112'"
and check to make sure that only the key(s) you wanted were added.

root@datasophon:/datasophon# ssh-copy-id u113
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@u113's password:

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 'u113'"
and check to make sure that only the key(s) you wanted were added.

root@datasophon:/datasophon# ssh-copy-id u114
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@u114's password:

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 'u114'"
and check to make sure that only the key(s) you wanted were added.

root@datasophon:/datasophon#

image

Anything else

No response

Version

v1.1.2

Are you willing to submit PR?

Code of Conduct

datasophon commented 5 months ago

What operating system is being used?

datasophon commented 5 months ago

These are normal prompts that tell you " No more authentication methods available"

geekyouth commented 5 months ago

What operating system is being used?

ubuntu 20


i have readed all your document, but i can't find which os is supported

datasophon commented 5 months ago

Ubuntu not supported, centos is supported

ocean-zhc commented 5 months ago

Ubuntu not supported, centos is supported

Is Anolis OS release 7.9 compatible with centos?

FrommyMind commented 5 months ago

supported I have some issue on Centos7.3