[
https://issues.apache.org/jira/browse/KARAF-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889148#action_12889148
]
Charles Moulliard commented on KARAF-126:
-----------------------------------------
Port number was not correct.
So I use this command :
ka...@client> ssh:ssh -l karaf -P karaf -p 8181 localhost
Connecting to host localhost on port 8181
Connected
Error executing command: Session is closed
ka...@client>
and get a new error :
{code}
14:35:27,265 | INFO | l Console Thread | Console |
araf.shell.console.jline.Console 198 | 20 - org.apache.karaf.shell.console -
1.99.0.SNAPSHOT | Exception caught while executing command
java.lang.IllegalStateException: Session is closed
at
org.apache.sshd.client.session.ClientSessionImpl.authPassword(ClientSessionImpl.java:106)[29:sshd-core:0.4.0]
at
org.apache.karaf.shell.ssh.SshAction.doExecute(SshAction.java:109)[16:org.apache.karaf.shell.ssh:1.99.0.SNAPSHOT]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)[20:org.apache.karaf.shell.console:1.99.0.SNAPSHOT]
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[20:org.apache.karaf.shell.console:1.99.0.SNAPSHOT]
at
org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)[18:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)[18:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)[18:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)[18:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)[18:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)[18:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.karaf.shell.console.jline.Console.run(Console.java:180)[20:org.apache.karaf.shell.console:1.99.0.SNAPSHOT]
at java.lang.Thread.run(Thread.java:619)[:1.6.0_20]
{code}
> Password: Error executing command: Failed to get the session.
> -------------------------------------------------------------
>
> Key: KARAF-126
> URL: https://issues.apache.org/jira/browse/KARAF-126
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Charles Moulliard
> Fix For: 2.0.0
>
>
> BTW, we cannot connect to a server from a karaf client
> To reproduce :
> 1) start your karaf server using command : 'admin start root'
> 2) Start a karaf client from an instance : 'instances/client/bin/karaf client'
> 3) In the console : launch the command
> ka...@client> ssh:ssh -l karaf -p karaf -p 8081 localhost
> Connecting to host localhost on port 8081
> Password: Error executing command: Failed to get the session.
> ka...@client>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.