[jira] [Commented] (SSHD-611) Servers rejecting keyboard-interactive authentication not handled
[ https://issues.apache.org/jira/browse/SSHD-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15046920#comment-15046920 ] Oliver Stöneberg commented on SSHD-611: --- I set up the SshClient using SshClient.setupDefaultClient() and at the very end I mentioned that I am using "28faad4 of master". In case you meant the server version - it happened with two different servers so far: - busybox with "SSH-2.0-OpenSSH_7.1" - OpenBSD 5.1 with "SSH-2.0-OpenSSH_6.0" > Servers rejecting keyboard-interactive authentication not handled > - > > Key: SSHD-611 > URL: https://issues.apache.org/jira/browse/SSHD-611 > Project: MINA SSHD > Issue Type: Bug >Reporter: Oliver Stöneberg > > I am trying to communicate with a server that advertises keyboard-interactive > authentication but it fails with "Too many authentication failures". When the > client sends the request it gets a failure and requests it again and again > until it hits the maximum retries value. It also never reaches the > UserInteraction object that was assigned to the client. It seems when the > request fails it should move on to the next authentication method. > Here's the output of sshd-core: > 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 > Here's the putty output: > Outgoing packet #0x4, type 5 / 0x05 (SSH2_MSG_SERVICE_REQUEST) > 00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68 ssh-userauth > Incoming packet #0x4, type 6 / 0x06 (SSH2_MSG_SERVICE_ACCEPT) > 00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68 ssh-userauth > Outgoing packet #0x5, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST) > 00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d rootssh- > 0010 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 04 6e 6f connectionno > 0020 6e 65ne > Incoming packet #0x5, type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE) > 00 00 00 27 70 75 62 6c 69 63 6b 65 79 2c 70 61 ...'publickey,pa > 0010 73 73 77 6f 72 64 2c 6b 65 79 62 6f 61 72 64 2d ssword,keyboard- > 0020 69 6e 74 65 72 61 63 74 69 76 65 00 interactive. > Outgoing packet #0x6, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST) > 00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d rootssh- > 0010 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 14 6b 65 connectionke > 0020 79 62 6f 61 72 64 2d 69 6e 74 65 72 61 63 74 69 yboard-interacti > 0030 76 65 00 00 00 00 00 00 00 00ve > Event Log: Attempting keyboard-interactive authentication > Incoming packet #0x6, type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE) > 00 00 00 27 70 75 62 6c 69 63 6b 65 79 2c 70 61 ...'publickey,pa > 0010 73 73 77 6f 72 64 2c 6b 65 79 62 6f 61 72 64 2d ssword,keyboard- > 0020 69 6e 74 65 72 61 63 74 69 76 65 00 interactive. > Event Log: Server refused keyboard-interactive authentication > Outgoing packet #0x7, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST) > 00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d rootssh- > 0010 63 6f 6e 6e
[jira] [Commented] (SSHD-611) Servers rejecting keyboard-interactive authentication not handled
[ https://issues.apache.org/jira/browse/SSHD-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15046859#comment-15046859 ] Goldstein Lyor commented on SSHD-611: - You did not mention what SSHD version you are using and whether you configure the _SshClient_ in any special way or just use _SshClient.setupDefaultClient()_ > Servers rejecting keyboard-interactive authentication not handled > - > > Key: SSHD-611 > URL: https://issues.apache.org/jira/browse/SSHD-611 > Project: MINA SSHD > Issue Type: Bug >Reporter: Oliver Stöneberg > > I am trying to communicate with a server that advertises keyboard-interactive > authentication but it fails with "Too many authentication failures". When the > client sends the request it gets a failure and requests it again and again > until it hits the maximum retries value. It also never reaches the > UserInteraction object that was assigned to the client. It seems when the > request fails it should move on to the next authentication method. > Here's the output of sshd-core: > 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 > Here's the putty output: > Outgoing packet #0x4, type 5 / 0x05 (SSH2_MSG_SERVICE_REQUEST) > 00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68 ssh-userauth > Incoming packet #0x4, type 6 / 0x06 (SSH2_MSG_SERVICE_ACCEPT) > 00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68 ssh-userauth > Outgoing packet #0x5, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST) > 00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d rootssh- > 0010 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 04 6e 6f connectionno > 0020 6e 65ne > Incoming packet #0x5, type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE) > 00 00 00 27 70 75 62 6c 69 63 6b 65 79 2c 70 61 ...'publickey,pa > 0010 73 73 77 6f 72 64 2c 6b 65 79 62 6f 61 72 64 2d ssword,keyboard- > 0020 69 6e 74 65 72 61 63 74 69 76 65 00 interactive. > Outgoing packet #0x6, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST) > 00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d rootssh- > 0010 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 14 6b 65 connectionke > 0020 79 62 6f 61 72 64 2d 69 6e 74 65 72 61 63 74 69 yboard-interacti > 0030 76 65 00 00 00 00 00 00 00 00ve > Event Log: Attempting keyboard-interactive authentication > Incoming packet #0x6, type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE) > 00 00 00 27 70 75 62 6c 69 63 6b 65 79 2c 70 61 ...'publickey,pa > 0010 73 73 77 6f 72 64 2c 6b 65 79 62 6f 61 72 64 2d ssword,keyboard- > 0020 69 6e 74 65 72 61 63 74 69 76 65 00 interactive. > Event Log: Server refused keyboard-interactive authentication > Outgoing packet #0x7, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST) > 00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d rootssh- > 0010 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 08 70 61 connectionpa > 0020 73 73 77 6f 72 64 00 XX XX XX XX XX XX XX XX XX ssword.X > 00
[jira] [Created] (SSHD-611) Servers rejecting keyboard-interactive authentication not handled
Oliver Stöneberg created SSHD-611: - Summary: Servers rejecting keyboard-interactive authentication not handled Key: SSHD-611 URL: https://issues.apache.org/jira/browse/SSHD-611 Project: MINA SSHD Issue Type: Bug Reporter: Oliver Stöneberg I am trying to communicate with a server that advertises keyboard-interactive authentication but it fails with "Too many authentication failures". When the client sends the request it gets a failure and requests it again and again until it hits the maximum retries value. It also never reaches the UserInteraction object that was assigned to the client. It seems when the request fails it should move on to the next authentication method. Here's the output of sshd-core: 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 Here's the putty output: Outgoing packet #0x4, type 5 / 0x05 (SSH2_MSG_SERVICE_REQUEST) 00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68 ssh-userauth Incoming packet #0x4, type 6 / 0x06 (SSH2_MSG_SERVICE_ACCEPT) 00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68 ssh-userauth Outgoing packet #0x5, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST) 00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d rootssh- 0010 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 04 6e 6f connectionno 0020 6e 65ne Incoming packet #0x5, type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE) 00 00 00 27 70 75 62 6c 69 63 6b 65 79 2c 70 61 ...'publickey,pa 0010 73 73 77 6f 72 64 2c 6b 65 79 62 6f 61 72 64 2d ssword,keyboard- 0020 69 6e 74 65 72 61 63 74 69 76 65 00 interactive. Outgoing packet #0x6, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST) 00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d rootssh- 0010 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 14 6b 65 connectionke 0020 79 62 6f 61 72 64 2d 69 6e 74 65 72 61 63 74 69 yboard-interacti 0030 76 65 00 00 00 00 00 00 00 00ve Event Log: Attempting keyboard-interactive authentication Incoming packet #0x6, type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE) 00 00 00 27 70 75 62 6c 69 63 6b 65 79 2c 70 61 ...'publickey,pa 0010 73 73 77 6f 72 64 2c 6b 65 79 62 6f 61 72 64 2d ssword,keyboard- 0020 69 6e 74 65 72 61 63 74 69 76 65 00 interactive. Event Log: Server refused keyboard-interactive authentication Outgoing packet #0x7, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST) 00 00 00 04 72 6f 6f 74 00 00 00 0e 73 73 68 2d rootssh- 0010 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 08 70 61 connectionpa 0020 73 73 77 6f 72 64 00 XX XX XX XX XX XX XX XX XX ssword.X 0030 XX XX XX XXX Outgoing packet #0x8, type 2 / 0x02 (SSH2_MSG_IGNORE) 00 00 00 a0 dd aa 67 0a 8d 42 d0 2a 5c 82 1e 5e ..g..B.*\..^ 0010 ef 3b 9f 2a c2 5d 71 8a 28 ff 5d ca 1f 28 94 20 .;.*.]q.(.]..(. 0020 ec f4 2d dd 34 dc cf 99 94 da c1 40 7d a4 d9 09 ..-.4..@}... 0030 0e 7c 15 f6 01 56 6b e8 a4 3c 45 a6 c9 bd 00 e3 .|...Vk..
[jira] [Work started] (SSHD-610) Disconnect reason should be propagated as error message
[ https://issues.apache.org/jira/browse/SSHD-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on SSHD-610 started by Goldstein Lyor. --- > 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: Improvement >Reporter: Oliver Stöneberg >Assignee: Goldstein Lyor >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_USER
[jira] [Assigned] (SSHD-610) Disconnect reason should be propagated as error message
[ https://issues.apache.org/jira/browse/SSHD-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Goldstein Lyor reassigned SSHD-610: --- Assignee: Goldstein Lyor > 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: Improvement >Reporter: Oliver Stöneberg >Assignee: Goldstein Lyor >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
[jira] [Updated] (SSHD-610) Disconnect reason should be propagated as error message
[ https://issues.apache.org/jira/browse/SSHD-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Goldstein Lyor updated SSHD-610: Issue Type: Improvement (was: Bug) > 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: Improvement >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 > DEBU
[jira] [Created] (SSHD-610) Disconnect reason should be propagated as error message
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.
[jira] [Commented] (SSHD-474) Null pointer exception when connecting with latest Dropbear's dbclient
[ https://issues.apache.org/jira/browse/SSHD-474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15046642#comment-15046642 ] Goldstein Lyor commented on SSHD-474: - The problem is indeed when first KEX packet follows which requires ignore. None of the current SSH clients use this option so we have not had to contend with it. I am testing some code that is designed to overcome this issue, and it does to the extent of getting over this bump. However, some other packets down the road after successful key establishment become corrupted (at least when using _DropBear_). We need a deeper understanding of what this means. > Null pointer exception when connecting with latest Dropbear's dbclient > -- > > Key: SSHD-474 > URL: https://issues.apache.org/jira/browse/SSHD-474 > Project: MINA SSHD > Issue Type: Bug >Affects Versions: 0.14.0 > Environment: Apache SSHD 0.14.0 binary distribution on a Redhat 6 > system. Oracle Java 1.7.0_25. Dropbear 2015.67. >Reporter: Andrew Danforth >Priority: Minor > Attachments: dbclient.log, sshd.log > > > SSHD throws a null pointer exception when using dbclient from Dropbear > 2015.67 to connect. I believe this is due to dbclient attempting to reduce > message exchange during key negotiation. If you compile dbclient and comment > out #define USE_KEX_FIRST_FOLLOWS from sysoptions.h the session proceeds as > expected. FWIW, this version of dbclient has no issues interacting with an > OpenSSH daemon. > I will attach a log of the SSHD output as well as the shell command to start > dbclient. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (SSHD-474) Null pointer exception when connecting with latest Dropbear's dbclient
[ https://issues.apache.org/jira/browse/SSHD-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Goldstein Lyor updated SSHD-474: Priority: Minor (was: Major) > Null pointer exception when connecting with latest Dropbear's dbclient > -- > > Key: SSHD-474 > URL: https://issues.apache.org/jira/browse/SSHD-474 > Project: MINA SSHD > Issue Type: Bug >Affects Versions: 0.14.0 > Environment: Apache SSHD 0.14.0 binary distribution on a Redhat 6 > system. Oracle Java 1.7.0_25. Dropbear 2015.67. >Reporter: Andrew Danforth >Priority: Minor > Attachments: dbclient.log, sshd.log > > > SSHD throws a null pointer exception when using dbclient from Dropbear > 2015.67 to connect. I believe this is due to dbclient attempting to reduce > message exchange during key negotiation. If you compile dbclient and comment > out #define USE_KEX_FIRST_FOLLOWS from sysoptions.h the session proceeds as > expected. FWIW, this version of dbclient has no issues interacting with an > OpenSSH daemon. > I will attach a log of the SSHD output as well as the shell command to start > dbclient. -- This message was sent by Atlassian JIRA (v6.3.4#6332)