You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Herr-Herner <wo...@gmx.de> on 2015/01/16 18:18:48 UTC

Using individual key file with karaf client fails

There is another problem when I use my own key for authentication. I put the
public key to keys.properties. Nevertheless, whether Bouncy Castle is
required or not, I put it as provider to my OpenJDK 7. Present or not, the
following call causes another exception:

client -v -h localhost -a 8101 -u karaf -r 50 -d 2 -k
/home/karaf/.ssh/id_dsa

Logging in as karaf
768 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
org.apache.sshd.client.session.ClientSessionImpl - Client session created
786 [main] INFO org.apache.sshd.client.session.ClientSessionImpl - Start
flagging packets as pending until key exchange is done
790 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
org.apache.sshd.client.session.ClientSessionImpl - Server version string:
SSH-2.0-SSHD-CORE-0.12.0
791 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
org.apache.sshd.client.session.ClientSessionImpl - Kex: server->client
[aes128-ctr, hmac-sha1, none] {} {}
791 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
org.apache.sshd.client.session.ClientSessionImpl - Kex: client->server
[aes128-ctr, hmac-sha1, none] {} {}
963 [sshd-SshClient[7f04eeb6]-nio2-thread-1] WARN
org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at
[localhost/127.0.0.1:8101, DSA,
26:9c:17:98:de:fc:39:f1:fc:d6:79:3e:d4:6b:1b:c1] presented unverified {}
key: {}
975 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
org.apache.sshd.client.session.ClientSessionImpl - Dequeing pending packets
976 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
org.apache.sshd.client.session.ClientUserAuthServiceNew - Received
SSH_MSG_USERAUTH_FAILURE
979 [sshd-SshClient[7f04eeb6]-nio2-thread-1] WARN
org.apache.sshd.client.session.ClientSessionImpl - Exception caught
java.lang.NullPointerException
        at
org.apache.sshd.agent.common.AgentDelegate.getIdentities(AgentDelegate.java:40)
        at
org.apache.sshd.client.auth.UserAuthPublicKey.init(UserAuthPublicKey.java:79)
        at
org.apache.sshd.client.session.ClientUserAuthServiceNew.tryNext(ClientUserAuthServiceNew.java:212)
        at
org.apache.sshd.client.session.ClientUserAuthServiceNew.processUserAuth(ClientUserAuthServiceNew.java:178)
        at
org.apache.sshd.client.session.ClientUserAuthServiceNew.process(ClientUserAuthServiceNew.java:131)
        at
org.apache.sshd.client.session.ClientUserAuthService.process(ClientUserAuthService.java:80)
        at
org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:399)
        at
org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)
        at
org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:256)
        at
org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:731)
        at
org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)
        at
org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:187)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
        at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
        at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
        at
sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
        at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:275)
        at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:296)
        at
java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
        at
org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:173)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:189)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
        at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
        at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
        at
sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
        at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:275)
        at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:296)
        at
java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
        at
org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:173)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:189)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
        at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
        at sun.nio.ch.Invoker$2.run(Invoker.java:218)
        at
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
org.apache.sshd.common.SshException: Authentication failed
        at
org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:44)
        at org.apache.karaf.client.Main.main(Main.java:113)
Caused by: org.apache.sshd.common.SshException: Session is closed
        at
org.apache.sshd.client.session.ClientUserAuthServiceNew.preClose(ClientUserAuthServiceNew.java:220)
        at
org.apache.sshd.common.util.CloseableUtils$AbstractCloseable.close(CloseableUtils.java:349)
        at
org.apache.sshd.common.util.CloseableUtils$AbstractInnerCloseable.doCloseImmediately(CloseableUtils.java:419)
        at
org.apache.sshd.common.util.CloseableUtils$AbstractCloseable.close(CloseableUtils.java:350)
        at
org.apache.sshd.common.util.CloseableUtils$2.close(CloseableUtils.java:112)
        at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:182)
        at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:177)
        at
org.apache.sshd.common.util.CloseableUtils$4.close(CloseableUtils.java:192)
        at
org.apache.sshd.common.util.CloseableUtils$AbstractInnerCloseable.doCloseImmediately(CloseableUtils.java:419)
        at
org.apache.sshd.common.session.AbstractSession.doCloseImmediately(AbstractSession.java:447)
        at
org.apache.sshd.common.util.CloseableUtils$AbstractCloseable.close(CloseableUtils.java:350)
        at
org.apache.sshd.common.session.AbstractSession.exceptionCaught(AbstractSession.java:436)
        at
org.apache.sshd.common.AbstractSessionIoHandler.exceptionCaught(AbstractSessionIoHandler.java:47)
        at
org.apache.sshd.common.io.nio2.Nio2Session.exceptionCaught(Nio2Session.java:126)
        at
org.apache.sshd.common.io.nio2.Nio2Session.access$500(Nio2Session.java:47)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onFailed(Nio2Session.java:202)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$2.run(Nio2CompletionHandler.java:41)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.failed(Nio2CompletionHandler.java:39)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:198)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
        at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
        at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
        at
sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
        at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:275)
        at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:296)
        at
java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
        at
org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:173)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:189)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
        at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
        at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
        at
sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
        at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:275)
        at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:296)
        at
java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
        at
org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:173)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:189)
        at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
        at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
        at sun.nio.ch.Invoker$2.run(Invoker.java:218)
        at
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

The call  ssh -p 8101 -i ~/.ssh/id_dsa karaf@localhost works perfectly.

I really need your help. The other issue can be found here:
http://karaf.922171.n3.nabble.com/Authentication-failed-using-instance-connect-in-Apache-Karaf-3-0-2-td4037780.html

Any hints? Have I faced some bugs in 3.0.2 or am I too stupid for getting
things running? 



--
View this message in context: http://karaf.922171.n3.nabble.com/Using-individual-key-file-with-karaf-client-fails-tp4037802.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Using individual key file with karaf client fails

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
I tested it when I wrote the documentation.

Let me try again.

Thanks,
Regards
JB

On 01/17/2015 11:35 AM, Herr-Herner wrote:
> I have cleaned everything and also deleted the .karafssh. I get the same
> exception... The key was generated without any passphrase via ssh-keygen in
> the way that was described in the documentation of 3.0.2.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Using-individual-key-file-with-karaf-client-fails-tp4037802p4037815.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Using individual key file with karaf client fails

Posted by Herr-Herner <wo...@gmx.de>.
I have cleaned everything and also deleted the .karafssh. I get the same
exception... The key was generated without any passphrase via ssh-keygen in
the way that was described in the documentation of 3.0.2.



--
View this message in context: http://karaf.922171.n3.nabble.com/Using-individual-key-file-with-karaf-client-fails-tp4037802p4037815.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Using individual key file with karaf client fails

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Can you try to delete ~/.karafssh ?

It uses karaf.key from the classloader (so embedded in the client), or, 
as you do, you have to use the -k option to specify a key location.

Let me try to reproduce your issue (it could be related to your key) and 
what Apache sshd does in AgentDelegate (line 40).

Regards
JB

On 01/16/2015 06:18 PM, Herr-Herner wrote:
> There is another problem when I use my own key for authentication. I put the
> public key to keys.properties. Nevertheless, whether Bouncy Castle is
> required or not, I put it as provider to my OpenJDK 7. Present or not, the
> following call causes another exception:
>
> client -v -h localhost -a 8101 -u karaf -r 50 -d 2 -k
> /home/karaf/.ssh/id_dsa
>
> Logging in as karaf
> 768 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
> org.apache.sshd.client.session.ClientSessionImpl - Client session created
> 786 [main] INFO org.apache.sshd.client.session.ClientSessionImpl - Start
> flagging packets as pending until key exchange is done
> 790 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
> org.apache.sshd.client.session.ClientSessionImpl - Server version string:
> SSH-2.0-SSHD-CORE-0.12.0
> 791 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
> org.apache.sshd.client.session.ClientSessionImpl - Kex: server->client
> [aes128-ctr, hmac-sha1, none] {} {}
> 791 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
> org.apache.sshd.client.session.ClientSessionImpl - Kex: client->server
> [aes128-ctr, hmac-sha1, none] {} {}
> 963 [sshd-SshClient[7f04eeb6]-nio2-thread-1] WARN
> org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at
> [localhost/127.0.0.1:8101, DSA,
> 26:9c:17:98:de:fc:39:f1:fc:d6:79:3e:d4:6b:1b:c1] presented unverified {}
> key: {}
> 975 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
> org.apache.sshd.client.session.ClientSessionImpl - Dequeing pending packets
> 976 [sshd-SshClient[7f04eeb6]-nio2-thread-1] INFO
> org.apache.sshd.client.session.ClientUserAuthServiceNew - Received
> SSH_MSG_USERAUTH_FAILURE
> 979 [sshd-SshClient[7f04eeb6]-nio2-thread-1] WARN
> org.apache.sshd.client.session.ClientSessionImpl - Exception caught
> java.lang.NullPointerException
>          at
> org.apache.sshd.agent.common.AgentDelegate.getIdentities(AgentDelegate.java:40)
>          at
> org.apache.sshd.client.auth.UserAuthPublicKey.init(UserAuthPublicKey.java:79)
>          at
> org.apache.sshd.client.session.ClientUserAuthServiceNew.tryNext(ClientUserAuthServiceNew.java:212)
>          at
> org.apache.sshd.client.session.ClientUserAuthServiceNew.processUserAuth(ClientUserAuthServiceNew.java:178)
>          at
> org.apache.sshd.client.session.ClientUserAuthServiceNew.process(ClientUserAuthServiceNew.java:131)
>          at
> org.apache.sshd.client.session.ClientUserAuthService.process(ClientUserAuthService.java:80)
>          at
> org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:399)
>          at
> org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)
>          at
> org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:256)
>          at
> org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:731)
>          at
> org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)
>          at
> org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:187)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
>          at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
>          at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
>          at
> sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
>          at
> sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:275)
>          at
> sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:296)
>          at
> java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:173)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:189)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
>          at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
>          at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
>          at
> sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
>          at
> sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:275)
>          at
> sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:296)
>          at
> java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:173)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:189)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
>          at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
>          at sun.nio.ch.Invoker$2.run(Invoker.java:218)
>          at
> sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
>          at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>          at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>          at java.lang.Thread.run(Thread.java:745)
> org.apache.sshd.common.SshException: Authentication failed
>          at
> org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:44)
>          at org.apache.karaf.client.Main.main(Main.java:113)
> Caused by: org.apache.sshd.common.SshException: Session is closed
>          at
> org.apache.sshd.client.session.ClientUserAuthServiceNew.preClose(ClientUserAuthServiceNew.java:220)
>          at
> org.apache.sshd.common.util.CloseableUtils$AbstractCloseable.close(CloseableUtils.java:349)
>          at
> org.apache.sshd.common.util.CloseableUtils$AbstractInnerCloseable.doCloseImmediately(CloseableUtils.java:419)
>          at
> org.apache.sshd.common.util.CloseableUtils$AbstractCloseable.close(CloseableUtils.java:350)
>          at
> org.apache.sshd.common.util.CloseableUtils$2.close(CloseableUtils.java:112)
>          at
> org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:182)
>          at
> org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:177)
>          at
> org.apache.sshd.common.util.CloseableUtils$4.close(CloseableUtils.java:192)
>          at
> org.apache.sshd.common.util.CloseableUtils$AbstractInnerCloseable.doCloseImmediately(CloseableUtils.java:419)
>          at
> org.apache.sshd.common.session.AbstractSession.doCloseImmediately(AbstractSession.java:447)
>          at
> org.apache.sshd.common.util.CloseableUtils$AbstractCloseable.close(CloseableUtils.java:350)
>          at
> org.apache.sshd.common.session.AbstractSession.exceptionCaught(AbstractSession.java:436)
>          at
> org.apache.sshd.common.AbstractSessionIoHandler.exceptionCaught(AbstractSessionIoHandler.java:47)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session.exceptionCaught(Nio2Session.java:126)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session.access$500(Nio2Session.java:47)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onFailed(Nio2Session.java:202)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler$2.run(Nio2CompletionHandler.java:41)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.failed(Nio2CompletionHandler.java:39)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:198)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
>          at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
>          at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
>          at
> sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
>          at
> sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:275)
>          at
> sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:296)
>          at
> java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:173)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:189)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
>          at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
>          at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
>          at
> sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
>          at
> sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:275)
>          at
> sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:296)
>          at
> java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:173)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:189)
>          at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
>          at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
>          at sun.nio.ch.Invoker$2.run(Invoker.java:218)
>          at
> sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
>          at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>          at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>          at java.lang.Thread.run(Thread.java:745)
>
> The call  ssh -p 8101 -i ~/.ssh/id_dsa karaf@localhost works perfectly.
>
> I really need your help. The other issue can be found here:
> http://karaf.922171.n3.nabble.com/Authentication-failed-using-instance-connect-in-Apache-Karaf-3-0-2-td4037780.html
>
> Any hints? Have I faced some bugs in 3.0.2 or am I too stupid for getting
> things running?
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Using-individual-key-file-with-karaf-client-fails-tp4037802.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com