Hello,
We suddenly started seeing the EOF error when the client side key exchange started.
Expected exception : The socket is EOF
What could be probable causes to look at?
We double checked the pub key in the known_hosts file for host identification to use which is correct.
Was able to logon with OpenSSH sftp we have installed and the pub key in the known hosts file.
Completely puzzled why this happens with only one of our many connections we set up.
Thanks!
Jan
The error log:
DEBUG [TransportProtocolCommon] 7 Feb 2025 10:31:01.347 : Starting key exchange
DEBUG [TransportProtocolCommon] 7 Feb 2025 10:31:01.347 : Determine Algorithm
DEBUG [TransportProtocolCommon] 7 Feb 2025 10:31:01.347 : Client Algorithms: [ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, diffie-hellman-group14-sha256, diffie-hellman-group-exchange-sha1, diffie-hellman-group-exchange-sha256, ext-info-c]
DEBUG [TransportProtocolCommon] 7 Feb 2025 10:31:01.347 : Server Algorithms: [ecdh-nistp384-kyber-768r3-sha384-d00@openquantumsafe.org, x25519-kyber-512r3-sha256-d00@amazon.com, ecdh-nistp256-kyber-512r3-sha256-d00@openquantumsafe.org, ecdh-nistp521-kyber-1024r3-sha512-d00@openquantumsafe.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, curve25519-sha256, curve25519-sha256@libssh.org, diffie-hellman-group18-sha512, diffie-hellman-group16-sha512, diffie-hellman-group-exchange-sha256]
DEBUG [TransportProtocolCommon] 7 Feb 2025 10:31:01.347 : Returning ecdh-sha2-nistp256
DEBUG [TransportProtocolCommon] 7 Feb 2025 10:31:01.347 : Key exchange algorithm: ecdh-sha2-nistp256
INFO [ECDHSha2] 7 Feb 2025 10:31:01.347 : Starting client side key exchange.
ALL [TransportProtocolCommon] 7 Feb 2025 10:31:01.732 : Name=SSH_MSG_KEX_ECDH_INIT,MessageId=30,Q_C=ô»öÈvÉ°–ɽ&C¯ÏàL¨ü¨ ×$r% ¸ö”¬CA¨'Z$@!þ"«Ûkc-íܾ»¸ÌÚª§
ALL [TransportProtocolOutputStream] 7 Feb 2025 10:31:01.732 : Sent message. Seq no=1, msg=30
WARN [TransportProtocolCommon] 7 Feb 2025 10:31:01.732 : The Transport Protocol thread failed: The socket is EOF
DEBUG [TransportProtocolCommon] 7 Feb 2025 10:31:01.732 : stop() called
DEBUG [State] 7 Feb 2025 10:31:01.732 : Updated state to 5
INFO [TransportProtocolCommon] 7 Feb 2025 10:31:01.732 : The Transport Protocol has been stopped
DEBUG [com.enterprisedt.net.ftp.ssh.SSHFTPClient] 7 Feb 2025 10:31:01.732 : Expected exception : The socket is EOF
java.io.IOException: The socket is EOF
at com.enterprisedt.net.j2ssh.transport.a.a(TransportProtocolInputStream.java:161)
at com.enterprisedt.net.j2ssh.transport.a.c(TransportProtocolInputStream.java:199)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.readMessage(TransportProtocolCommon.java:1415)
at com.enterprisedt.net.j2ssh.transport.kex.ECDHSha2.performClientExchange(ECDHSha2.java:134)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolClient.performKeyExchange(TransportProtocolClient.java:452)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(TransportProtocolCommon.java:733)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.a(TransportProtocolCommon.java:1373)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(TransportProtocolCommon.java:1080)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.run(TransportProtocolCommon.java:430)
at java.base/java.lang.Thread.run(Thread.java:829)
java.io.IOException: The socket is EOF
at com.enterprisedt.net.j2ssh.transport.a.a(TransportProtocolInputStream.java:161)
at com.enterprisedt.net.j2ssh.transport.a.c(TransportProtocolInputStream.java:199)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.readMessage(TransportProtocolCommon.java:1415)
at com.enterprisedt.net.j2ssh.transport.kex.ECDHSha2.performClientExchange(ECDHSha2.java:134)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolClient.performKeyExchange(TransportProtocolClient.java:452)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(TransportProtocolCommon.java:733)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.a(TransportProtocolCommon.java:1373)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(TransportProtocolCommon.java:1080)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.run(TransportProtocolCommon.java:430)
at java.base/java.lang.Thread.run(Thread.java:829)