Question:
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.
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?
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
Perhaps try setting the SslProtocol property explicitly to "TLS 1.0 or higher". For example:
.SslProtocol = "TLS 1.0 or higher"
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