login about faq

I have a working code which runs on 3.5 framework 32 bit and Chilkat version 9.0.8.0.It works on upload a file internall for sftp server

I am trying the download a file from external SFTP site and place the file in one of our server. I am getting the error message as: Please help!!!

Error Log created
Could not establish connection to C:\File\\ message:ChilkatLog:
  NumFilesAndDirs:
    DllDate: Feb 15 2010
    UnlockPrefix: FTP
    Username: rkuruvilla
    Component: .NET 2.0
    ListDir:
      (SendSecure) Cannot send data, not connected.
      SetModeBinary: Elapsed time: 0 millisec
    N: -1
    Failed.

Error Log created
Could not establish connection to C:\\ message:ChilkatLog:
  Connect:
    DllDate: Feb 15 2010
    UnlockPrefix: FTP
    Username: rkuruvilla
    Component: .NET 2.0
    Using Implicit SSL
    ImplicitSsl: 1
    AuthTls: 0
    AuthSsl: 0
    Hostname: coserv-storage-test.ifactornotifi.com
    Port: 22
    Connecting via SSL
    Protocol: default
    IdleTimeoutMs: 60000
    ConnectTimeout: 60
    HeartbeatMs: 0
    ConnectTimeoutMs: 60000
    protocol: default
    Invalid token.
    ReceivedDataQP: SSH-2.0-OpenSSH_5.3

SEC_E_INVALID_TOKEN
    Aborting SSL client handshake because of fatal error
    Possible solution: Check to see if your server requires a client-side certificate.  If so, it can be provided by calling SetSslClientCert prior to connecting.
    Possible solution: Try explicitly setting the SslProtocol property = "SSL 3.0".
    Error performing handshake
    ConnectFailReason: 103
    Failed to connect to FTP server.

Error Log created
Could not establish connection to C:\\ message:ChilkatLog:
  Connect:
    DllDate: Feb 15 2010
    UnlockPrefix: FTP
    Username: rkuruvilla
    Component: .NET 2.0
    Using Implicit SSL
    ImplicitSsl: 1
    AuthTls: 0
    AuthSsl: 0
    Hostname: coserv-storage-test.ifactornotifi.com
    Port: 22
    Connecting via SSL
    Protocol: default
    IdleTimeoutMs: 60000
    ConnectTimeout: 60
    HeartbeatMs: 0
    ConnectTimeoutMs: 60000
    protocol: default
    Invalid token.
    ReceivedDataQP: SSH-2.0-OpenSSH_5.3

SEC_E_INVALID_TOKEN
    Aborting SSL client handshake because of fatal error
    Possible solution: Check to see if your server requires a client-side certificate.  If so, it can be provided by calling SetSslClientCert prior to connecting.
    Possible solution: Try explicitly setting the SslProtocol property = "SSL 3.0".
    Error performing handshake
    ConnectFailReason: 103
    Failed to connect to FTP server.
    

asked Mar 01 at 14:02

learn's gravatar image

learn
1

edited Mar 01 at 14:46

jpbro's gravatar image

jpbro ♦
1.1k2618


First, you are using a really old version of the library, so I suggest trying the latest version.

Second - in the error log there is the following message which might help:

Possible solution: Check to see if your server requires a client-side certificate.  If so, it can be provided by calling SetSslClientCert prior to connecting.
Possible solution: Try explicitly setting the SslProtocol property = "SSL 3.0".

If you try those recommendations, are you able to performy our task successfully?

link

answered Mar 01 at 14:47

jpbro's gravatar image

jpbro ♦
1.1k2618

i tried and got this error:

 Error Log created
Could not establish connection to \\devifs\CIS\EbillPreference\ message:ChilkatLog:
  Connect_Ftp2:
    DllDate: Dec 29 2015
    ChilkatVersion: 9.5.0.55
    UnlockPrefix: FTP
    Username: ELECL7W103904:rkuruvilla
    Architecture: Little Endian; 32-bit
    Language: .NET 2.0
    VerboseLogging: 0
    ProgressMonitoring:
      enabled: yes
      heartbeatMs: 0
      sendBufferSize: 65536
    --ProgressMonitoring
    Using Implicit SSL
    ImplicitSsl: 1
    AuthTls: 0
    AuthSsl: 0
    ftpConnect:
      Hostname: coserv-storage-test.ifactornotifi.com
      Port: 22
      Connecting via SSL/TLS
      IdleTimeoutMs: 60000
      socket2Connect:
        connect2:
          connectImplicitSsl:
            clientHandshake:
              clientHandshake2:
                readHandshakeMessages:
                  WindowsError: An existing connection was forcibly closed by the remote host.
                  WindowsErrorCode: 0x2746
                  numBytesRequested: 5
                  Failed to receive data on the TCP socket
                  Failed to read beginning of SSL/TLS record.
                --readHandshakeMessages
              --clientHandshake2
            --clientHandshake
            Client handshake failed. (3)
          --connectImplicitSsl
          ConnectFailReason: 103
        --connect2
      --socket2Connect
      ConnectFailReason: 103
    --ftpConnect
    Failed to connect to FTP server.
    Failed.
  --Connect_Ftp2
--ChilkatLog

Error Log created
Could not establish connection to \\devifs\CIS\EbillPreference\ message:ChilkatLog:
  IsConnected:
    DllDate: Dec 29 2015
    ChilkatVersion: 9.5.0.55
    UnlockPrefix: COSERVFTP
    Username: ELECL7W103904:rkuruvilla
    Architecture: Little Endian; 32-bit
    Language: .NET 2.0
    VerboseLogging: 0
    Not connected.
  --IsConnected
--ChilkatLog
link

answered Mar 01 at 15:47

learn's gravatar image

learn
1

edited Mar 01 at 17:24

jpbro's gravatar image

jpbro ♦
1.1k2618

Perhaps try setting the SslProtocol property explicitly to "TLS 1.0 or higher". For example:

.SslProtocol = "TLS 1.0 or higher"
link

answered Mar 01 at 17:28

jpbro's gravatar image

jpbro ♦
1.1k2618

Failed to receive multiline FTP reply. initialStatus: 999 initialResponse: SSH-2.0-OpenSSH_5.3

Failed to connect to FTP server.

We have a key for passing SSL/TLS through FTP over SSL server. Do you need another key to download from a remote server through SSH

link

answered Mar 02 at 12:05

learn's gravatar image

learn
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×56

Asked: Mar 01 at 14:02

Seen: 748 times

Last updated: Mar 02 at 12:05

powered by OSQA