EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Connection failed at SBSimpleSftp.TElSimpleSFTPClient.Open()

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#14302
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
SftpClient_OnError
SftpClient_OnAuthenticationFailed

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

Thanks
#14303
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.
#14304
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.
#14313
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
#14321
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.

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

Thanks.
#14322
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);


Is not 16 = SSH_AUTH_TYPE_KEYBOARD??
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

Topic viewed 2124 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!