If your application calls Chilkat’s SFtp.OpenFile, and it fails because the server responded with SSH_FX_NO_SUCH_FILE, it means the file does not exist on the server. Trust that this is correct — the server would not say so unless the remote file truly does not exist on the server at the path your application provided. All remote file paths passed to […]
Question: How can I set the default permissions of every file uploaded without the need to change the file permissions on the server after the upload? I want all uploaded files to have permissions 664. Answer: On most servers, the default file permissions should already be 664. To explicitly set the permissions to be used for uploaded files, then the […]
It seems that more and more nowadays, Chilkat has customers needing to download gigantic files (many Gigabytes) using various protocols such as SFTP, FTP, or HTTP. These downloads can take a long time, even with a very good transfer rate. The longer the download time, the higher the probability that something goes wrong: network congestion, connectivity issues, server problems, etc. […]
The /etc/ssh/sshd_config file has an entry called AuthenticationMethods. Typically you would enter either: to indicate which authentication method should be required. You can also enter: to indicate that either authentication method should be required. You can also enter: to indicate that both authentication methods should be required. If a server requires both publickey and password, then call AuthenticatePwPk. If a […]
This post clarifies the topic of binary vs. ascii uploads/downloads for SFTP (Secure File Transfer over SSH) and FTP. Binary mode transmits bytes exactly as-is. Text mode (also known as “ascii” mode) can modify line endings (CR’s and LF’s) to the canonical convention used on the remote system. For example, Linux systems typically use bare LF line-endings, whereas text […]
The following error is explained in this post: ChilkatLog: DownloadFileByName: DllDate: Apr 25 2018 ChilkatVersion: 22.214.171.124 UnlockPrefix: * Architecture: Little Endian; 64-bit Language: Cocoa Objective-C VerboseLogging: 0 SftpVersion: 3 Component successfully unlocked using purchased unlock code. Must first connect to the SSH server. –DownloadFileByName –ChilkatLog The above error can happen after a long period of inactivity. Let’s say your application […]
This example demonstrates how to open a remote file on an SSH/SFTP server, write to the file, and then close it. This is analogous to opening a local file, writing to it, and closing it. The SFTP protocol (i.e. Secure File Transfer over SSH), follows the same concepts as typical file I/O programming — i.e. open a file, read, write, […]
v126.96.36.199 Micro Update: Added hmac-sha2-512,hmac-sha2-256,hmac-ripemd160 to SSH/SFTP internal transport.
Added support for the hmac-sha2-512,hmac-sha2-256,hmac-ripemd160 algorithms to SSH/SFTP internal transport.
A minor fix to SFtp.ResumeDownloadFileByName: If the complete file already exists locally such that nothing needed to be downloaded, the method incorrectly returned a failed status. This has been fixed.