EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Connection failed at SBSimpleSftp.TElSimpleSFTPClient.Open()

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
Posted: 08/26/2010 15:20:07
by Deepa V (Basic support level)
Joined: 08/26/2010
Posts: 5

Our application is a .NET application using SB for SFTP connection.

We have a handler for

Our application throws the below excpetion. The handlers are not being invoked.

How can i find out more about this excpetion and the cause?
Can i implement any other hander for more information?
-----------------Inner Exception----------------

Exception: SBSimpleSftp.EElSimpleSFTPClientException
Message: Connection failed

Posted: 08/26/2010 15:29:33
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. This error is thrown when there is no possibility to connect on socket layer. Please check if you can do the socket connection to the designated host and port.
Posted: 08/26/2010 15:39:58
by Deepa V (Basic support level)
Joined: 08/26/2010
Posts: 5

Hi : We are able to connect to the host on that port using other clients.

I should mention that this is an intermittent issue.
Also the same copy of the secure black box dlls are being shared by multiple threads.
Posted: 08/28/2010 02:24:03
by Eugene Mayevski (EldoS Corp.)

1) Please specify the version of SecureBlackbox that you are using and whether you use the evaluation or licensed version.
2) Each instance of the transport component (such as TElSimpleSFTPClient) must be used from only one thread. However, multiple instances of transport component or multiple instances of different components can be used safely from different threads.
3) The exception has ErrorCode property which gives you more information. Please check it's value (in code) if the exception happens.

Sincerely yours
Eugene Mayevski
Posted: 08/30/2010 13:00:53
by Deepa V (Basic support level)
Joined: 08/26/2010
Posts: 5

Hi Eugene,
We are using a licensed version of secure black box 6.

I have wrapped my Open() in a try catch as per your suggesstion.

catch (SBSimpleSftp.EElSimpleSFTPClientException ex)
throw new MyException<string>("SftpClient.Open threw an exception",String.Format("Error Code = {0}", ex.ErrorCode), ex.InnerException);

Posted: 08/30/2010 13:13:58
by Deepa V (Basic support level)
Joined: 08/26/2010
Posts: 5

On another note....

We keep receiving the following error even when we are able to connect and upload/download successfully.
SFTP Authentication type [16] failed

our authentication type is set as:
SftpClient.AuthenticationTypes = SftpClient.AuthenticationTypes & (~SBSSHConstants.Unit.SSH_AUTH_TYPE_PUBLICKEY);

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.



Topic viewed 2095 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!