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

Jean-Baptiste Onofré commented on KARAF-5473:
---------------------------------------------

Enabling the keep alive on OpenSSH client seems to work. Especially, on sshd 
side, I can see:

{code}
14:14:58.222 DEBUG [sshd-SshServer[892cb82]-nio2-thread-2] 
sendResponse(ChannelSession[id=0, 
recipient=0]-ServerSessionImpl[karaf@/127.0.0.1:44282]) request=window-change 
result=ReplySuccess, want-reply=false
14:14:58.223 DEBUG [sshd-SshServer[892cb82]-nio2-thread-2] 
sendResponse(ChannelSession[id=0, 
recipient=0]-ServerSessionImpl[karaf@/127.0.0.1:44282]) request=window-change 
mismatched channel type: shell
{code}

I'm testing adding keep alive on the Karaf client.

> Karaf SSH session timing out
> ----------------------------
>
>                 Key: KARAF-5473
>                 URL: https://issues.apache.org/jira/browse/KARAF-5473
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.1.2, 4.2.0.M1
>         Environment: Tried on two different machines, both running Debian 8.9
>            Reporter: Daniel Malmgren
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.2.0, 4.1.5
>
>
> SSH sessions into Karaf are aborted after about ten minutes of inactivity. 
> The following message is written to the log:
> 14:35:26.042 WARN [sshd-SshServer[616ddc]-nio2-thread-2] 
> exceptionCaught(ServerSessionImpl[karaf@/127.0.0.1:40676])[state=Opened] 
> InterruptedByTimeoutException: null
> The problem started some weeks ago with the Karaf version shipped with 
> openHAB, it's currently on 4.1.2. I've also tried a plain Karaf container 
> though (version 4.2.0.M1) and get the exact same problem there. This has been 
> discussed in the openHAB forum here: 
> [https://community.openhab.org/t/timeout-in-karaf-console/35443]



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

Reply via email to