Hi, i am using sshj to test a karaf application. This worked until recently (SSH-2.0-SSHD-CORE-1.7.0) quite good. There was a upgrade to SSH-2.0-APACHE-SSHD-2.5.1 which causes problems.
Analyzing the networktrace shows that in this case the karaf-sshd is closing the tcp connection which causes this error. Comparing to the old trace it shows that the tcp connection is kept open, so that follow up request can be successful. I have checked some rfcs concerning ssh but did not find a answer if the tcp session should be closed when a channel is closed? The only answer i found is that there is SSH_MSG_DISCONNECT but it does not say when to use it?
Kind Regards
Reinhard
Hi, i am using sshj to test a karaf application. This worked until recently (SSH-2.0-SSHD-CORE-1.7.0) quite good. There was a upgrade to SSH-2.0-APACHE-SSHD-2.5.1 which causes problems.
2022-08-18 11:22:41,921 | ERROR | n.s.sshj.transport.TransportImpl | Dying because - Broken transport; encountered EOF net.schmizz.sshj.transport.TransportException: Broken transport; encountered EOF at net.schmizz.sshj.transport.Reader.run(Reader.java:58)
Analyzing the networktrace shows that in this case the karaf-sshd is closing the tcp connection which causes this error. Comparing to the old trace it shows that the tcp connection is kept open, so that follow up request can be successful. I have checked some rfcs concerning ssh but did not find a answer if the tcp session should be closed when a channel is closed? The only answer i found is that there is SSH_MSG_DISCONNECT but it does not say when to use it? Kind Regards Reinhard