You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2010/07/16 14:35:51 UTC

[jira] Created: (KARAF-126) Password: Error executing command: Failed to get the session.

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

karaf@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.
karaf@client>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-126) Password: Error executing command: Failed to get the session.

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ 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 :

karaf@client> ssh:ssh -l karaf -P karaf -p 8181 localhost
Connecting to host localhost on port 8181
Connected
Error executing command: Session is closed
karaf@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
> karaf@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.
> karaf@client>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-126) Password: Error executing command: Failed to get the session.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889149#action_12889149 ] 

Guillaume Nodet commented on KARAF-126:
---------------------------------------

The port is 8101 and it works well for me.


> 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
> karaf@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.
> karaf@client>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (KARAF-126) Password: Error executing command: Failed to get the session.

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Moulliard closed KARAF-126.
-----------------------------------

    Resolution: Fixed

sorry for my mistake 

--> the syntax to be used is :

karaf@client> ssh:ssh -l karaf -P karaf -p 8101 localhost



> 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
> karaf@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.
> karaf@client>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.