SecureBlackbox Knowledge Base

Recent SFTP Articles


During handshake OnAuthenticationFailed event is fired, but authentication succedes. Why is the event triggered?

SSH protocol supports many authentication methods and you can enable all or some of them. Usually just one authentication method is used during handshake. This m…

SSH or SFTP connection to the server is closed or hangs during data transfer stage (after successful handshake). What should I do?

SSH or SFTP connection to the server is closed or hangs during data transfer stage (after successful handshake). What to do:

SSH or SFTP connection to the server is not established (connection is closed during handshake).

You run the code which uses SSH or SFTP client and ... got nothing. The connection is not established. SSH family of protocols is complex and various SSH servers…

Time reported by the components is XX hours away from correct. Why?

Time is reported by SFTP in UTC according to the standard. It's your task to convert it to local computer time.…

How can I debug SFTP client code without having an SFTP server?

Well, you must have an SFTP server. If you don't want to use a production server or the server is not under your complete control, you can install local SSH/SFTP…

I can't read or change Owner and Group attributes of the file.

Check that you are connecting to Unix server. Some attributes are not supported by SFTP version 3 and earlier. If the connection uses SFTP 3, you need to use UID…

Does SFTP support wildcard characters and file masks with file operations?

I can't read or change Owner and Group attributes of the file.

I can't login to the server with username and password. Other programs do this fine. A bug?

Most likely, the server is using not password-based authentication, but keyboard-interactive authentication. SecureBlackbox supports both authentication types. F…

How do I get / set current directory?

SFTP doesn't have a concept of current directory. You must always use absolute paths when you refer to the files. If you use relative paths, the result depends o…

How do I specify text or binary mode for file transfer with SFTP?

By default, SFTP uses binary mode. Text mode is supported by SFTP protocol versions 4 and later. To ensure that the connection is established using SFTP 4 or lat…

What SSH algorithms are implemented in SecureBlackbox?

sftpblackbox

Getting an error "e;Command rejected due to sftp proxy policy settings: SSH_FXP_..."e; . What's this?

This error is often produced by the server which identifies itself as Maveric_SSHD. Case 1. Command rejected due to sftp proxy policy settings: SSH_FXP_INIT. Thi…

I need to send a command before transferring the file. How do I do this?

I need to send a command before transferring the file. How do I do this? TElSimpleSFTPClient has ExecuteCommand method that executes a command via command tunnel…

Active property of the socket-based component is true, though I know that connection has been closed by the server. Why so?

The Active property, when set, indicates that connection was successful and the component was ready to perform its actions. However if the connection is lost on …

SSH / SFTP connection to JPMorgan (transmissions*.jpmorgan.com) fails. Why?

This is a known bug of their server software. It advertises support for keyboard-interactive authentication but if the client uses this authentication mechanism,…

Why is speed of SFTP transfer too low comparing to WS_FTP or FileZilla?

Common speed for SSH and SFTP data transfer is around 1-1.5 Mb/sec. It is limited by encryption speed and several layers of data copying and processing (during S…

File transfer doesn't work while directory listing works. Are they different?

In SFTP directory listing and file transfer are very different operations. Try setting PipelineLength property of the SFTP client component to 1 and AutoAdjustTr…