You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/06/17 11:10:00 UTC

[jira] [Created] (KARAF-3791) Unable to connect to an instance with instance:connect command

Jean-Baptiste Onofré created KARAF-3791:
-------------------------------------------

             Summary: Unable to connect to an instance with instance:connect command
                 Key: KARAF-3791
                 URL: https://issues.apache.org/jira/browse/KARAF-3791
             Project: Karaf
          Issue Type: Bug
          Components: karaf-instance
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: 4.0.0


After starting a new instance, trying to connect to the instance with instance:connect doesn't work (even using -u option):

{code}
karaf@root()> instance:connect test
Connecting to host localhost on port 8102
Password:  *****
Password:  *****
Password:  *****
Error executing command: Authentication failed
{code}

In the log, we can see:

{code}
2015-06-17 11:08:21,205 | INFO  | 2]-nio2-thread-1 | ClientSessionImpl                | 46 - org.apache.sshd.core - 0.14.0 | Client session created
2015-06-17 11:08:21,207 | INFO  | 2]-nio2-thread-1 | ClientSessionImpl                | 46 - org.apache.sshd.core - 0.14.0 | Server version string: SSH-2.0-SSHD-CORE-0.14.0
2015-06-17 11:08:21,207 | INFO  | nsole user karaf | ClientSessionImpl                | 46 - org.apache.sshd.core - 0.14.0 | Start flagging packets as pending until key exchange is done
2015-06-17 11:08:21,306 | INFO  | 2]-nio2-thread-4 | ClientSessionImpl                | 46 - org.apache.sshd.core - 0.14.0 | Dequeing pending packets
2015-06-17 11:08:21,308 | INFO  | 2]-nio2-thread-5 | ClientUserAuthServiceNew         | 46 - org.apache.sshd.core - 0.14.0 | Received SSH_MSG_USERAUTH_FAILURE
2015-06-17 11:08:21,314 | INFO  | 2]-nio2-thread-6 | ClientUserAuthServiceNew         | 46 - org.apache.sshd.core - 0.14.0 | Received SSH_MSG_USERAUTH_FAILURE
2015-06-17 11:08:21,316 | INFO  | 2]-nio2-thread-7 | UserAuthKeyboardInteractive      | 46 - org.apache.sshd.core - 0.14.0 | Received Password authentication  en-US
2015-06-17 11:08:23,144 | INFO  | 2]-nio2-thread-8 | ClientUserAuthServiceNew         | 46 - org.apache.sshd.core - 0.14.0 | Received SSH_MSG_USERAUTH_FAILURE
2015-06-17 11:08:23,147 | INFO  | 2]-nio2-thread-9 | UserAuthKeyboardInteractive      | 46 - org.apache.sshd.core - 0.14.0 | Received Password authentication  en-US
2015-06-17 11:08:24,197 | INFO  | 2]-nio2-thread-1 | ClientUserAuthServiceNew         | 46 - org.apache.sshd.core - 0.14.0 | Received SSH_MSG_USERAUTH_FAILURE
2015-06-17 11:08:24,199 | INFO  | 2]-nio2-thread-2 | UserAuthKeyboardInteractive      | 46 - org.apache.sshd.core - 0.14.0 | Received Password authentication  en-US
2015-06-17 11:08:25,099 | INFO  | 2]-nio2-thread-3 | ClientUserAuthServiceNew         | 46 - org.apache.sshd.core - 0.14.0 | Received SSH_MSG_USERAUTH_FAILURE
2015-06-17 11:08:25,105 | ERROR | nsole user karaf | ShellUtil                        | 42 - org.apache.karaf.shell.core - 4.0.0.SNAPSHOT | Exception caught while executing command
org.apache.sshd.common.SshException: Authentication failed
        at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:44)[46:org.apache.sshd.core:0.14.0]
        at org.apache.karaf.shell.ssh.SshAction.execute(SshAction.java:141)[43:org.apache.karaf.shell.ssh:4.0.0.SNAPSHOT]
        at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.execute(ConsoleSessionImpl.java:293)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.instance.command.ConnectCommand.doExecute(ConnectCommand.java:81)[30:org.apache.karaf.instance.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.instance.command.InstanceCommandSupport.execute(InstanceCommandSupport.java:90)[30:org.apache.karaf.instance.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:267)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)