[
https://issues.apache.org/jira/browse/SSHD-891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16770161#comment-16770161
]
Goldstein Lyor commented on SSHD-891:
-------------------------------------
Sorry - the log you attached is incomplete at best - a lot of crucial
information is lacking so I dare not venture a guess. Furthermore, since I have
no idea whatsoever what your code is trying to achieve and how, I do not want
to mislead you by speculating. However:
* You claim to have upgraded from 0.13.0 to 2.1.0 (actually I recommend you
upgrade to the newly released 2.2.0). This is a huge leap between virtually
incompatible versions. I strongly suggest you
** Recompile the code that invokes SSHD code - I have a feeling the upgrade
from 0.13.0 to 2.1.0 (or 2.2.0) is not as smooth as it may seem
** Read the [documentation|https://github.com/apache/mina-sshd/] - perhaps more
than once since there are may non-trivial concepts - including configurations,
behavior, etc...
** Re-visit key RFC sections (most are mentioned in the documentation) to have
a better understanding of the protocol
** Review your code in view of what you have learned and try to figure out what
is going on and why it is failing
** Open relevant log levels and provide more information - not only the
exception but also what led to it, what was the code trying to do when the
exception occurred, what SSH messages were being exchanged etc,...
Best I can do for now with the limited information I can glean from the issue
and without actually seeing the code in question or have full log information.
My *wild guess* based on the exception is that the client fails to write a
packet to its peer - as to why, your guess is as good as mine...
{quote}
And with respect to setting the state of sshd we are not able to access the
state variable from ssh-server package as state varaible is made protected in
ssh-common package
{quote}
I do not understand why you need access to this variable...
> SSh connections gets closed for every one hour with 0.13.0 version
> ------------------------------------------------------------------
>
> Key: SSHD-891
> URL: https://issues.apache.org/jira/browse/SSHD-891
> Project: MINA SSHD
> Issue Type: Bug
> Reporter: Anudeep
> Assignee: Goldstein Lyor
> Priority: Blocker
>
> SSH connections are getting closed for every one hours after 10 mins of idle
> time even though there are incoming pacets data is not being wriiten to
> client for every one hour and is being idle(10 mins which is default timeout
> of ssh session).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)