Understanding SFTP Absolute FilePaths

Given that your SFTP client might be communicating with servers on different operating systems, what is the proper syntax for an absolute filepath? On a Linux system, there is no “C” drive. Let’s do some experimentation…. For this experiment, we have two SSH servers: 1) A Tectia server running on a Windows platform. 2) An OpenSSH server running on Ubuntu […]

Block Encryption Algorithms and Encoding

Question: In our application we have the need to encrypt a 19 character simple string value. When running through the sample test program I found that the resulting encrypted string varied in size from at least 44 to 64 characters depending on the encoding type parameter. Is there a way to generate an encrypted value that will generate a string […]

Hidden IMAP Mailboxes

Question: I developed a mail client who download mail messages from a Cyrus IMAP server. The INBOX mailbox has some “children”. Some of them are defined as hidden, then using e-mail client such as Outlook express or Thunderbird they are not shown while on my client, ListMailboxes(“”,”*”) method (CkImap class) detect them and my application display them. How can I […]

MS-Word document as body of email?

Question: My question is how to I send the contents of a MS-Word document as the body of the email (not as an attachment)? Answer: You cannot. Most email clients (Mozilla Thunderbird, Eudora, etc.) are not capable of displaying MS-Word documents directly. (I’m not sure if Outlook does, I’ve never tested it…) Therefore, you would want to save your MS-Word […]

SFTP Download Files Matching a Pattern

Question: I am trying your component to check if I can integrate it well in an application I need to transfer and manage files using SFTP over SSH. I’ve examined the samples and there’s one thing I’d like to do and cannot find it. Is it possible to read remote folder content but limited only to those items matching a […]

SFTP RemoveFile – File not found

Question: When trying to delete a file using SFTP with this line: success = sftp.RemoveFile(“out/” & fileObj.Filename) we get the error listed below: ChilkatLog: RemoveFile: DllDate: Feb 8 2009 UnlockPrefix: Anything for 30-day trial Username: IUSR_ABCD Component: ActiveX SshVersion: SSH-2.0-1.36 sshlib: GlobalScape SftpVersion: 3 hcCurDate: Wed, 18 Feb 2009 14:23:01 +1100 hcExpire: 4/2009 filename: out/abc123.edi StatusCode: 2 ErrorMessage: File not […]

Selecting Smartcard Hash Algorithm

Question: I’m tried to produce a P7S file with the hash algorithm SHA-512, but the code always produces a signature with an SHA-1 hash for the data. If I’m selecting MD5 as hash algorithm it works fine. I’m using a Smartcard (D-Trust with Siemens Card OS 4.3) , ReinerSCT card reader and as Smartcard CSP Nexus Personal 4.10.1. Here’s my […]

SSH Tunneling (Port Forwarding)

SSH Port Forwarding (or tunneling) allows you to tunnel any TCP connection through an SSH server. For example, consider a database connection: A direct TCP connection: DbClient <—-TCP—-> DbServer An SSH tunneled connection: DbClient <—-TCP—-> SshClient <====SSH====> SshServer <—-TCP—-> DbServer In a tunneled connection, the application connects through an SshClient to an SSH server and starts a direct-tcpip channel, specifying […]

SSH direct-tcpip Port Forwarding (tunneling)

ASP: SSH Tunnel (Port Forwarding via direct-tcpip channel) SQL Server: SSH Tunnel (Port Forwarding via direct-tcpip channel) C#: SSH Tunnel (Port Forwarding via direct-tcpip channel) C++: SSH Tunnel (Port Forwarding via direct-tcpip channel) MFC: SSH Tunnel (Port Forwarding via direct-tcpip channel) C: SSH Tunnel (Port Forwarding via direct-tcpip channel) Delphi: SSH Tunnel (Port Forwarding via direct-tcpip channel) Visual FoxPro: SSH […]