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”, …

SSH/SFTP Downloading Text file produces strange characters?

Question: I receive strange characters when downloading a text file using ReadFileText. Why does this happen? Answer: Using SSH/SFTP, files are downloaded exactly as-is byte-for-byte except if you call the ReadFileText* methods. The ReadFileText* methods require a charset (i.e. character encoding) to be specified in the method arguments. This allows …

SSH / SFTP – Too much time between connect and authentication

The Solution: Issue solved.   The problem was, that we stepped through the code and because of that too much time elapsed between connect and authentication.  As we ran the program without breakpoints it worked. The Problem: The AuthenticatePw method failed and the LastErrorText contained this information: ChilkatLog: AuthenticatePw: DllDate: Jan …

SFTP File not Found

Question: I’m trying to open a file on the SFTP server, but I get a “File not Found” error? Here is the LastErrorText: ChilkatLog: OpenFile: DllDate: Dec 2 2009 UnlockPrefix: Anything for 30-day trial Username: IUSR_ABC*** Component: ActiveX SshVersion: SSH-2.0-1.36 sshlib: GlobalScape SftpVersion: 3 hcCurDate: Tue, 08 Dec 2009 13:48:25 …

SFTP Permission Denied trying to open existing file.

Question: Why did I get a permission denied error from the server when trying to open an existing file on the SSH/SFTP server? Here’s the LastErrorText: ChilkatLog: DownloadFileByName: DllDate: Dec 2 2009 UnlockPrefix: *** Username: Administrator Component: ActiveX SshVersion: SSH-2.0-CoreFTP-0.1.2 SftpVersion: 3 PreserveDate: 0 fromFilePath: /test.dat.gz toFilePath: c:\abc\test.dat.gz OpenRemoteFile: filename: …

SendBufferSize/MaxPacketSize can make progress events more frequent in FTP and SSH/SFTP

Question: I’ve downloaded the trial version of your FTP2 ActiveX control. I’m using it in Visual FoxPro 9, but need to have a progress bar to track an upload. When using your asynchronous example code, the progress bar jumps from 0 to 524288 and so on. I need much more …

InitializeSftp – Received FAILURE response to subsystem request.

If the SSH server is setup/configured to not allow SFTP, or your SSH user account is not allowed to use SFTP, the InitializeSftp method will return a failed status. Here is an example: ChilkatLog: InitializeSftp: DllDate: Oct 30 2009 UnlockPrefix: ABC123 Username: chilkat Component: .NET 2.0 SshVersion: SSH-2.0-OpenSSH_4.5 SftpVersion: 0 …