Hi JB, I've also seen this issue occur without using Docker. E.g. when I start Karaf 4.2.1 (part of openHAB 2.4.0-SNAPSHOT) from the command line in the foreground with the shell console on Ubuntu 16.04.5 and then connect to it with SSH. So it seems this SSH issue is not limited to Docker environments.
After browsing the 4.2.1 tag <https://github.com/apache/karaf/commit/04b0d916f3842b19d0f0cdd8f2d3ea40f622405d#diff-79b50e1d21ae311d16c1bd36b1be95f3> in GitHub it seems Karaf 4.2.1 already has the mentioned fix of KARAF-5842, although the issue still occurs. Regards, Wouter -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html