EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTP adapter: Connection lost (error code is 10058)

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#18508
Posted: 12/19/2011 07:57:44
by Kanuvoi Karthikeyan (Standard support level)
Joined: 12/19/2011
Posts: 2

Connecting to a remote SFTP server using the SFTP adapter from BizTalk 2009 running on Win 2003 R2 64 bit. It is failing all the time. User/Pwd method of connection. Running the latest version of the adapter (9.1.212).

Following is the debug trace log:
Quote

[12/19/2011 7:22 AM] EldoS SFTP Adapter (send): ProcessMessage()
[12/19/2011 7:22 AM] Searching for installed BizCrypto addons.
[12/19/2011 7:22 AM] BizCrypto.BizTalk.Addons library successfully loaded.
[12/19/2011 7:22 AM] EldoS SFTP Adapter: Loading private key
[12/19/2011 7:22 AM] EldoS SFTP Adapter: Loading trusted keys
[12/19/2011 7:22 AM] EldoS SFTP Adapter: Opening connection to SFTP server
[12/19/2011 7:22 AM] EldoS SFTP Adapter: Running key validation handler
[12/19/2011 7:22 AM] EldoS SFTP Adapter: SSH error 109
[12/19/2011 7:22 AM] EldoS SFTP Adapter: Call stack: at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.OnError(Object Sender, Int32 ErrorCode)
at SBSimpleSftp.TElSimpleSFTPClient.DoError(Object Sender, Int32 ErrorCode)
at SBSSHCommon.TElSSHClass.DoError(Int32 ErrorCode)
at SBSSHClient.TElSSHClient.SSH2ParseKexDHReply(Byte[] Buffer, Int32 Size)
at SBSSHClient.TElSSHClient.SSH2ParseOnTransportLayer(Byte[] Buffer, Int32 Size)
at SBSSHClient.TElSSHClient.AnalyseBuffer()
at SBSSHClient.TElSSHClient.DataAvailable()
at SBSimpleSftp.TElSimpleSFTPClient.DataAvailable()
at SBSimpleSftp.TElSimpleSFTPClient.IntMessageLoop()
at SBSimpleSftp.TElSimpleSFTPClient.DoMessageLoop()
at SBSimpleSftp.TElSimpleSFTPClient.Open()
at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.OpenClient()
at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.DoWork(Trace trace, IBaseMessage message, AdapterProperties props, Boolean upload, ArrayList fileList, ImpersonateUser& impersonateUser)
at BizCrypto.BizTalk.Adapters.SFTP.SFTPAsyncTransmitterBatch.ProcessMessage(IBaseMessage message, AdapterProperties props)
at BizCrypto.BizTalk.Adapters.SFTP.SFTPAsyncTransmitterBatch.TransmitMessage(TransmitterMessage msg)
at BizCrypto.BizTalk.Adapters.AsyncTransmitterBatch.ProcessWorkItem()
at BizCrypto.BizTalk.Adapters.ThreadPool.WorkerThreadThunk(Object state)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
[12/19/2011 7:22 AM] EldoS SFTP Adapter: Failed to transfer file(s): Connection lost (error code is 10058)
Stack:
at SBSimpleSftp.TElSimpleSFTPClient.DoSend(Object Sender, Byte[] Buffer)
at SBSSHCommon.TElSSHClass.DoSend(Byte[] Buffer, Int32 Size)
at SBSSHClient.TElSSHClient.SSH2SendOnTransportLayer(Int32 Size)
at SBSSHClient.TElSSHClient.SSH2SendDisconnect(Int32 ReasonCode, Byte[] Desc)
at SBSSHClient.TElSSHClient.PerformClose(Boolean Forced, String CloseReason)
at SBSSHClient.TElSSHClient.CloseByError(String ReasonLine)
at SBSSHClient.TElSSHClient.SSH2ParseKexDHReply(Byte[] Buffer, Int32 Size)
at SBSSHClient.TElSSHClient.SSH2ParseOnTransportLayer(Byte[] Buffer, Int32 Size)
at SBSSHClient.TElSSHClient.AnalyseBuffer()
at SBSSHClient.TElSSHClient.DataAvailable()
at SBSimpleSftp.TElSimpleSFTPClient.DataAvailable()
at SBSimpleSftp.TElSimpleSFTPClient.IntMessageLoop()
at SBSimpleSftp.TElSimpleSFTPClient.DoMessageLoop()
at SBSimpleSftp.TElSimpleSFTPClient.Open()
at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.OpenClient()
at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.DoWork(Trace trace, IBaseMessage message, AdapterProperties props, Boolean upload, ArrayList fileList, ImpersonateUser& impersonateUser)
[12/19/2011 7:22 AM] EldoS SFTP Adapter: Closing the connection
[12/19/2011 7:22 AM] EldoS SFTP Adapter (send): Error: Connection lost (error code is 10058)

Regards,
Karthik
#18510
Posted: 12/19/2011 08:10:33
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

Code 109 stands for the ERROR_SSH_HOST_KEY_NOT_VERIFIABLE error. It is returned if a public key of the server has not been found in the provided trusted keys file. Please add both keys of the server (the majority of SSH servers keep two keys, namely RSA and DSS ones) to the trusted keys file and try to connect to the server again.
#18515
Posted: 12/19/2011 09:00:18
by Kanuvoi Karthikeyan (Standard support level)
Joined: 12/19/2011
Posts: 2

Ok, thanks. That is helpful.

Waiting for the public keys from the server side. In the mean time, tried the "Trust All Keys" set to true and that seems to have worked. Once I get the keys, will try with the keys.

Regards,
Karthik

Reply

Statistics

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