SAP Knowledge Base Article - Preview

3769697 - SFTP Sender Exception: com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read

Symptom

  • Sender SFTP channel fails with below error and fails to establish a session to the SFTP server.
  • SFTP Server vendor performed security hardening, changes etc
  • SFTP adapter traces show the SSH handshake progressing until authentication stage before the session is terminated.

    SSH_MSG_SERVICE_REQUEST sent

    SSH_MSG_EXT_INFO received

    server-sig-algs=<...>

    Disconnecting from <SFTP_HOST> port <PORT>

    Catching com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read
    at com.sap.aii.adapter.sftp.ra.rar.integration.sftp.SSHConnection.<init>(SSHConnection.java..)
    at com.sap.aii.adapter.sftp.ra.rar.jca.SFTP2XI.getConnection(SFTP2XI.java..)
    at com.sap.aii.adapter.sftp.ra.rar.jca.SFTP2XI.sftpConnection(SFTP2XI.java..)
    at com.sap.aii.adapter.sftp.ra.rar.jca.SFTP2XI.invoke(SFTP2XI.java..)

    Unable to connect due to SFTP connectivity failed due to JSCH exception. Error message is: Session.connect: java.io.IOException: End of IO Stream Read! 

  • SFTP vendor traces may indicate that the SSH connection is accepted and initial SSH negotiation is performed before the session is terminated.

    CONNECT [SESSION_ID] - Incoming connection request on SSH SFTP listener at <SFTP_SERVER_IP>:<PORT> accepted from <CLIENT_IP>:<SOURCE_PORT>

    INFO [SESSION_ID] - Client Identification: <SFTP_CLIENT_IDENTIFIER>

    CONNECT [SESSION_ID] - Agreed upon KEX: '<KEX_ALGORITHM>' Host Key: '<HOST_KEY_ALGORITHM>' C2S: '<CIPHER_DETAILS>' S2C: '<CIPHER_DETAILS>'

    CONNECT [SESSION_ID] - Disconnect reason: Connection terminated by the client.


Read more...

Environment

  • SAP NetWeaver
  • SAP Process Integration
  • SAP Process Orchestration

Keywords

SFTP, java.io.IOException: End of IO Stream Read, JSCH, Connection terminated by the client, SSH algorithm mismatch, mismatch, preferredKeyType, ssh-rsa, SAP PI/PO SFTP Adapter, JSchException , KBA , BC-XI-CON-SFT , Secure File Transfer Protocol Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.