Archived Forum Post

Index of archived forum posts

Question:

Sftp error Failed to receive FXP_VERSION .net c#

Oct 10 '12 at 10:14

I found this error in the forum but the solutions provided (old dll version and too many connections) don't apply to my situation. Is there another possible solution or some info i can take back to the admin of the site.

ChilkatLog:
  InitializeSftp:
    DllDate: Jan 19 2012
    Architecture: Little Endian; 32-bit
    Language: .NET 2.0
    SshVersion: SSH-2.0-OpenSSH_4.3
    SftpVersion: 0
    hcCurDate: Fri, 14 Sep 2012 08:37:01 -0400
    hcExpire: 4/2012
    channelType: session
    clientChannel: 0
    initialWindowSize: 327680
    maxPacketSize: 32768
    Sent open channel request
    ClientChannelNum: 0
    ServerChannelNum: 0
    ServerInitialWindowSize: 0
    ServerMaxPacketSize: 32768
    Session channel successfully opened.
    ChannelNum: 0
    ServerChannelNum: 0
    Sent subsystem request
    Received SUCCESS response to subsystem request.
    Sent FXP_INIT
    Received EOF
    Failed to receive FXP_VERSION
    Failed.
  --InitializeSftp
--ChilkatLog


Answer

The "DllDate" within your LastErrorText shows "Jan 19 2012", which mean you're not actually using the very latest version. (Maybe the Chilkat assembly is being loaded from the GAC?) In any case, download the latest version, or if you wish, you can grab the latest from here: http://www.chilkatsoft.com/preRelease/ChilkatDotNet2.zip (which is a stable, production-ready build.)


Answer

Also, I found this after Googling "sftp server closed connection unexpectedly"

1) Your account may not be able to start SFTP server binary (e.g. /bin/sftp-server) or the binary is not present on your server.

2) Your SSH server may also lack the SFTP subsystem.