You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2021/03/08 05:28:00 UTC

[jira] [Resolved] (KARAF-6980) client/ssh session is not closed anymore until the idleTimeout

     [ https://issues.apache.org/jira/browse/KARAF-6980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-6980.
-----------------------------------------
    Fix Version/s: 4.3.1
                   4.2.11
       Resolution: Fixed

> client/ssh session is not closed anymore until the idleTimeout
> --------------------------------------------------------------
>
>                 Key: KARAF-6980
>                 URL: https://issues.apache.org/jira/browse/KARAF-6980
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.10
>            Reporter: Xilai Dai
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.2.11, 4.3.1
>
>
> When execute a karaf command from client/client.bat, the ssh session isn't closed until the idelTimeout (by default 1800 sec) in Karaf 4.2.10.
> On Karaf 4.2.9 or lower (ssh session closed after command executed):
> {code:java}
> E:\download\apache-karaf-4.2.9\bin>client.bat -h localhost "list"
> Logging in as karaf
> START LEVEL 100 , List Threshold: 50
> ID │ State  │ Lvl │ Version │ Name
> ───┼────────┼─────┼─────────┼───────────────────────────────────────
> 22 │ Active │  80 │ 4.2.9   │ Apache Karaf :: OSGi Services :: Event
> E:\download\apache-karaf-4.2.9\bin>
> {code}
> On karaf 4.2.10 (ssh session still opening until the timeout):
> {code:java}
> E:\download\apache-karaf-4.2.10\bin>client.bat -h localhost "list"
> Logging in as karaf
> Enter password for C:\Users\xldai\.ssh\id_rsa:
> START LEVEL 100 , List Threshold: 50
> ID │ State  │ Lvl │ Version │ Name
> ───┼────────┼─────┼─────────┼───────────────────────────────────────
> 24 │ Active │  80 │ 4.2.10  │ Apache Karaf :: OSGi Services :: Event
> {code}
> -t parameter (e.g -t 1000) is not a solution for all use cases.
>  The ssh session has to be closed automatically after the command executed, after sshd version upgraded from 1.7.0 to 2.5.1. (the same behavior as previous versions)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)