mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Stöneberg (JIRA) <j...@apache.org>
Subject [jira] [Created] (SSHD-610) Disconnect reason should be propagated as error message
Date Tue, 08 Dec 2015 10:44:11 GMT
Oliver Stöneberg created SSHD-610:
-------------------------------------

             Summary: Disconnect reason should be propagated as error message
                 Key: SSHD-610
                 URL: https://issues.apache.org/jira/browse/SSHD-610
             Project: MINA SSHD
          Issue Type: Bug
            Reporter: Oliver Stöneberg
            Priority: Minor


While connecting to a server I get the following error

org.apache.sshd.common.SshException: Session is closed -  
at org.apache.sshd.client.session.ClientUserAuthService.preClose() in ClientUserAuthService.java:244.

at org.apache.sshd.common.util.closeable.AbstractCloseable.close() in AbstractCloseable.java:68.

at org.apache.sshd.common.util.closeable.ParallelCloseable.doClose() in ParallelCloseable.java:65.

at org.apache.sshd.common.util.closeable.SimpleCloseable.close() in SimpleCloseable.java:52.

at org.apache.sshd.common.util.closeable.SequentialCloseable$1.operationComplete() in SequentialCloseable.java:56.

at org.apache.sshd.common.util.closeable.SequentialCloseable$1.operationComplete() in SequentialCloseable.java:46.

at org.apache.sshd.common.util.closeable.SequentialCloseable.doClose() in SequentialCloseable.java:69.

at org.apache.sshd.common.util.closeable.SimpleCloseable.close() in SimpleCloseable.java:52.

at org.apache.sshd.common.util.closeable.AbstractInnerCloseable.doCloseImmediately() in AbstractInnerCloseable.java:47.

at org.apache.sshd.common.util.closeable.AbstractCloseable.close() in AbstractCloseable.java:69.

at org.apache.sshd.common.session.AbstractSession.handleDisconnect() in AbstractSession.java:498.

at org.apache.sshd.common.session.AbstractSession.doHandleMessage() in AbstractSession.java:420.

at org.apache.sshd.common.session.AbstractSession.handleMessage() in AbstractSession.java:394.

at org.apache.sshd.client.session.ClientSessionImpl.handleMessage() in ClientSessionImpl.java:248.

at org.apache.sshd.common.session.AbstractSession.decode() in AbstractSession.java:1010. 
at org.apache.sshd.common.session.AbstractSession.messageReceived() in AbstractSession.java:374.

at org.apache.sshd.common.session.AbstractSessionIoHandler.messageReceived() in AbstractSessionIoHandler.java:59.

at org.apache.sshd.common.io.nio2.Nio2Session$2.onCompleted() in Nio2Session.java:225. 
at org.apache.sshd.common.io.nio2.Nio2Session$2.onCompleted() in Nio2Session.java:217. 
at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run() in Nio2CompletionHandler.java:37.

at java.security.AccessController.doPrivileged() in AccessController.java:-2. 
at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed() in Nio2CompletionHandler.java:34.

at sun.nio.ch.Invoker.invokeUnchecked() in Invoker.java:126. 
at sun.nio.ch.Invoker$2.run() in Invoker.java:218. 
at sun.nio.ch.AsynchronousChannelGroupImpl$1.run() in AsynchronousChannelGroupImpl.java:112.

at java.util.concurrent.ThreadPoolExecutor.runWorker() in ThreadPoolExecutor.java:1142. 
at java.util.concurrent.ThreadPoolExecutor$Worker.run() in ThreadPoolExecutor.java:617. 
at java.lang.Thread.run() in Thread.java:745.

The actual error can be found in the log:

DEBUG [sshd-SshClient[48c40605]-nio2-thread-1] (ClientUserAuthService.java:234) tryNext(ClientSessionImpl[root@/10.48.43.215:22])
attempting method=keyboard-interactive
DEBUG [sshd-SshClient[48c40605]-nio2-thread-1] (UserAuthKeyboardInteractive.java:110) process(root@ClientSessionImpl[root@/10.48.43.215:22])[ssh-connection]
Send SSH_MSG_USERAUTH_REQUEST for keyboard-interactive
TRACE [sshd-SshClient[48c40605]-nio2-thread-1] (AbstractSession.java:862) encode(ClientSessionImpl[root@/10.48.43.215:22])
Sending packet #5: 32 00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d 63 6f 6e 6e 65 63 74
69 6f 6e 00 00 00 14 6b 65 79 62 6f 61 72 64 2d 69 6e 74 65 72 61 63 74 69 76 65 00 00 00
00 00 00 00 00
DEBUG [sshd-SshClient[48c40605]-nio2-thread-1] (Nio2Session.java:114) Writing 100 bytes
DEBUG [sshd-SshClient[48c40605]-nio2-thread-4] (Nio2Session.java:274) Finished writing
DEBUG [sshd-SshClient[48c40605]-nio2-thread-5] (Nio2Session.java:223) Read 84 bytes
TRACE [sshd-SshClient[48c40605]-nio2-thread-5] (AbstractSession.java:1003) decode(ClientSessionImpl[root@/10.48.43.215:22])
Received packet #6: 33 00 00 00 27 70 75 62 6c 69 63 6b 65 79 2c 70 61 73 73 77 6f 72 64 2c
6b 65 79 62 6f 61 72 64 2d 69 6e 74 65 72 61 63 74 69 76 65 00
TRACE [sshd-SshClient[48c40605]-nio2-thread-5] (AbstractSession.java:415) doHandleMessage(ClientSessionImpl[root@/10.48.43.215:22])
process SSH_MSG_USERAUTH_FAILURE
DEBUG [sshd-SshClient[48c40605]-nio2-thread-5] (ClientUserAuthService.java:181) processUserAuth(ClientSessionImpl[root@/10.48.43.215:22])
Received SSH_MSG_USERAUTH_FAILURE - partial=false, methods=publickey,password,keyboard-interactive

repeats a few time

TRACE [sshd-SshClient[48c40605]-nio2-thread-6] (AbstractSession.java:415) doHandleMessage(ClientSessionImpl[root@/10.48.43.215:22])
process SSH_MSG_DISCONNECT
DEBUG [sshd-SshClient[48c40605]-nio2-thread-6] (AbstractSession.java:495) handleDisconnect(ClientSessionImpl[root@/10.48.43.215:22])
SSH_MSG_DISCONNECT reason=SSH2_DISCONNECT_PROTOCOL_ERROR, [lang=] msg=Too many authentication
failures

The disconnect reason should be propogated as the actual error message.

I am using 28faad4 of master.



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

Mime
View raw message