How to know that SFTP Upload was Transferred Successfully?

Question: In the online reference documentation, it says that “bool UploadFileByName(string remoteFilePath, string localFilePath)” will return true if success or false for failure. My question is that how does your component know that the file had been transferred successfully? Does it get ACK from SFTP server or that only means that client had sent the file successfully but not guarantee […]

SFTP vs. FTPS

Clarification on the acronyms “SFTP” and “FTPS” “SFTP” is the Secure File Transfer Protocol over SSH.  It is a protocol unrelated to the FTP protocol. (It is actually a subsystem of SSH.)  The Chilkat SSH / SFTP component is used for “SFTP”.  SFTP is achieved by connecting to an SSH server at port 22. On the other hand, the Chilkat […]

SSH/SFTP RemoveFile: “Permission Denied”

If the SFTP server responds to a request to delete a file with the error “Permission Denied”, it means the SSH/SFTP user account does not have permission to delete the file. Here is a sample LastErrorText that shows the path of the remote file to be deleted, and the “Permission Denied” response from the server. ChilkatLog: RemoveFile: DllDate: Jan 19 […]

SFTP Open: The meaning of “No Such File”

When an SSH/SFTP server responds to a file open request with the error message “No Such File”, it means that it could not find the file (i.e. there was no such file). This is a snippet from the LastErrorText property: … OpenRemoteFile: filename: something.dat access: readOnly createDisposition: openExisting v3Flags: 0x1 Sent FXP_OPEN StatusResponse: Request: FXP_OPEN StatusCode: 2 StatusMessage: No such […]

SFTP Permission Denied w/ OpenFile Method

Question: We are trying to upload a file to SFTP using private key. We are able to connect and retrieve folder listing. But when we try to upload to one of the folder on the SFTP we get the “Permission denied” error message. The message is as below. ChilkatLog: OpenFile: DllDate: Feb 15 2010 UnlockPrefix: **** Username: joe Component: .NET […]

SFTP OpenFile Succeeds, but ReadFileBytes Fails

SSH/SFTP servers are notoriously bad at providing any sort of useful information about the cause of a problem. This is one of those cases. It was discovered that for one particular server, if a remote file is opened (via the OpenFile method) using “readWrite” access, then the OpenFile succeeds, but a subsequent call to a method such as ReadFileBytes fails. […]

SFTP OpenFile fails with “Folder not found” from SFTP Server

If the SSH/SFTP server responds with a “Folder not found” error in response to calling OpenFile with a remote filepath is just a filename with no path part, then try prepending “./” to the filepath.  For example: success = sftp.OpenFile(“test.txt”, “writeOnly”, “createTruncate”); If this fails with a “Folder not found”, then modify your code to this: success = sftp.OpenFile(“./test.txt”, “writeOnly”, […]

SSH/SFTP Disrupted by Untangle Security Appliance

(With permission from a Chilkat customer, for the benefit of others..) Problem: We did some extensive testing and found that our client sees this on their end what the connection fails: SERVER:   13.07.2010  15:21:43  (57220) session ended on error, Buffer missing (error 132). Do you know what that could possibly mean in relation to Chilkat’s SFTP? Solution: “The issue ended […]