Archived Forum Post

Index of archived forum posts


Error on sFTP Socket

Jun 24 '16 at 09:19


I've a issue with PHP extensions and sFTP. I get since yesterday the error message below. The days before it runs fine. I don't understand the error message. Pls can anyone have a look to it and tell me what goes wrong ...



    DllDate: Mar 12 2016
    UnlockPrefix: xxxxxxxxxxxxxx
    Architecture: Little Endian; 64-bit
    Language: Linux PHP
    VerboseLogging: 0
    SshVersion: SSH-2.0-OpenSSH_6.6.1
    SftpVersion: 0
    Component successfully unlocked using purchased unlock code.
    sshTransportOpenChannel:  channelType: session
    clientChannel: 0
    clientInitialWindowSize: 327680
    clientMaxPacketSize: 32768
    Sent open channel request
    errno: 104
    osErrorMessage: Connection reset by peer
    numBytesRequested: 16
    Failed to receive data on the TCP socket
    Failed to read 1st block_size bytes..
    sshRawPacket: Socket fatal error.
    sshReadMessage: Socket fatal error.
    Error reading channel response.
    Socket connection lost, channel closed.


The normal sequence of calls is

  1. Call sftp.Connect to establish the secure SSH connection.
  2. Call sftp.AuthenticatePw (or another Authenticate* method) to authenticate.
  3. Call sftp.InitializeSFtp to start the SFTP subsystem on the SSH connection.

It seems that the connection was closed/reset by something external (a software or hardware firewall?) or perhaps by the SSH server itself just before step 3.

Check the following:

  1. Examine the sftp.LastErrorText after the call to Connect, and also after the call to AuthenticatePw. Verify that all was successful.
  2. Did the SSH server get updated to a new version? If so, maybe that has something to do with it.
  3. Were there any changes to firewalls or any other security infrastructure on either the client or server sides?
  4. Does it happen every time?