[ 
https://issues.apache.org/jira/browse/SSHD-869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16872622#comment-16872622
 ] 

Aruna Potti commented on SSHD-869:
----------------------------------

[~lgoldstein] Sorry I was not able to attach the screen shot. I was referring 
about below keep-alive machanisms, 

[https://github.com/apache/mina-sshd/blob/master/docs/client-setup.md]

 
 * Sending {{SSH_MSG_IGNORE}} messages every once in a while.

This mechanism is along the lines of [PUTTY null packets 
configuration|https://patrickmn.com/aside/how-to-keep-alive-ssh-sessions/]. It 
generates small 
[{{SSH_MSG_IGNORE}}|https://tools.ietf.org/html/rfc4253#section-11.2] messages. 
The way to set this mechanism up is via the {{setSessionHeartbeat}} API.

_Note:_ the same effect can also be achieved by setting the relevant properties 
documented in {{SessionHeartbeatController}}, but it is highly recommended to 
use the API - unless one needs to control these properties *externally* via 
{{-Dxxx}} JVM options.

 * Sending {{keepalive@...}} [global 
requests|https://tools.ietf.org/html/rfc4254#section-4].

> java.security.SignatureException: error decoding signature bytes.
> -----------------------------------------------------------------
>
>                 Key: SSHD-869
>                 URL: https://issues.apache.org/jira/browse/SSHD-869
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.14.0
>            Reporter: Aruna Potti
>            Priority: Major
>
> Below exception is seen with some ssh keys. I need a fix/workaround in 0.14.0 
> version as I can not upgrade the version in my product.
>  
> Exception caught
> java.security.SignatureException: error decoding signature bytes.
>         at 
> org.bouncycastle.jcajce.provider.asymmetric.dsa.DSASigner.engineVerify(Unknown
>  Source)[bcprov-jdk15on-1.59.jar:1.59.0]
>         at 
> java.security.Signature$Delegate.engineVerify(Signature.java:1219)[:1.8.0_66]
>         at java.security.Signature.verify(Signature.java:652)[:1.8.0_66]
>         at 
> org.apache.sshd.common.signature.AbstractSignatureDSA.verify(AbstractSignatureDSA.java:88)[53:org.apache.sshd.core:0.14.0]
>         at 
> org.apache.sshd.client.kex.DHGEX.next(DHGEX.java:163)[53:org.apache.sshd.core:0.14.0]
>         at 
> org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:425)[53:org.apache.sshd.core:0.14.0]
>         at 
> org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)[53:org.apache.sshd.core:0.14.0]
>         at 
> org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:306)[53:org.apache.sshd.core:0.14.0]
>         at 
> org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)[53:org.apache.sshd.core:0.14.0]
>         at 
> org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)[53:org.apache.sshd.core:0.14.0]
>         at 
> org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)[53:org.apache.sshd.core:0.14.0]
>         at 
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:184)[53:org.apache.sshd.core:0.14.0]
>         at 
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:170)[53:org.apache.sshd.core:0.14.0]
>         at 
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
>         at java.security.AccessController.doPrivileged(Native 
> Method)[:1.8.0_66]
>         at 
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[53:org.apache.sshd.core:0.14.0]
>         at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.8.0_66]
>         at sun.nio.ch.Invoker$2.run(Invoker.java:218)[:1.8.0_66]
>         at 
> sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.8.0_66]
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_66]
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_66]
>         at java.lang.Thread.run(Thread.java:745)[:1.8.0_66]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to