Trying to connect to Fuse 6 containers fails with error message "com.jcraft.jsch.JSchException: Auth fail"

Solution Verified - Updated -

Issue

  • After changing the user credentials, it is not possible connect to the container and log shows the following entry:
ERROR | Thread-1374      | Console                          | 16 - org.apache.karaf.shell.console - 2.4.0.redhat-630254 | Exception caught while executing command
io.fabric8.api.FabricException: com.jcraft.jsch.JSchException: Auth fail
        at io.fabric8.service.ssh.SshContainerProvider.stop(SshContainerProvider.java:171)
        at io.fabric8.service.FabricServiceImpl.stopContainer(FabricServiceImpl.java:376)
        at io.fabric8.internal.ContainerImpl.stop(ContainerImpl.java:517)
        at io.fabric8.commands.ContainerStopAction.doExecute(ContainerStopAction.java:49)
        at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
        at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_121]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_121]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_121]
        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_121]
        at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
        at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
        at io.fabric8.commands.$ContainerStop153714394.execute(Unknown Source)
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[16:org.apache.karaf.shell.console:2.4.0.redhat-630254]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[16:org.apache.karaf.shell.console:2.4.0.redhat-630254]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[16:org.apache.karaf.shell.console:2.4.0.redhat-630254]
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[16:org.apache.karaf.shell.console:2.4.0.redhat-630254]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[16:org.apache.karaf.shell.console:2.4.0.redhat-630254]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[16:org.apache.karaf.shell.console:2.4.0.redhat-630254]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:197)
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:171)[23:org.apache.karaf.shell.ssh:2.4.0.redhat-630254]
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:126)
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_121]
        at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[42:org.apache.karaf.jaas.modules:2.4.0.redhat-630254]
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:124)[23:org.apache.karaf.shell.ssh:2.4.0.redhat-630254]
Caused by: com.jcraft.jsch.JSchException: Auth fail
        at com.jcraft.jsch.Session.connect(Session.java:512)
        at com.jcraft.jsch.Session.connect(Session.java:183)
        at io.fabric8.service.ssh.SshContainerProvider.createSession(SshContainerProvider.java:262)
        at io.fabric8.service.ssh.SshContainerProvider.stop(SshContainerProvider.java:165)
        ... 25 more

Environment

  • Red Hat JBoss Fuse 6.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.