sshj
sshj copied to clipboard
Server closed connection during identification exchange in kernel version Linux 5.4.0-91-generic x86_64 with latest version of sshj 0.33.0
Facing exception "Server closed connection during identification exchange" in kernel version "Linux 5.4.0-91-generic x86_64" with latest version of sshj 0.33.0
The above exception occurs for the following segment -
LocalPortForwarder localPortForwarderObj; SSHClient clientSsh; Parameters params; ServerSocket serversocket;
this.localPortForwarderObj = this.clientSsh.newLocalPortForwarder(this.params, this.serversocket); this.localPortForwarderObj.listen(); // this lines gives the following exception
where the same is working fine with kernel version "Linux 4.15.0-142-generic x86_64".
What changes need to be done to make it work ?
Do you control the server, or is it is controlled by other people?
I've seen such behaviour many times with servers protected by security software (not sure if it is appropriate to mention particular trademarks). SSHJ logs a server identity with the info level. It's like User-Agent in HTTP. If the identity doesn't contain OpenSSH, and especially if it contains a name of some security software, it might be that case.
@nandroy Any update?