EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTP Trusted Key issue

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#10759
Posted: 08/07/2009 12:12:48
by Kel Koenig II (Standard support level)
Joined: 07/25/2008
Posts: 41

We're setting up an SFTP connection to an external vendor and are receiving an error when I don't set the 'Trust all keys' property = Yes with the SFTP adapter. When it is set to Yes, everything works just fine, but when it is set to No and I've specified the location of the vendors SSH2 PUBLIC KEY, I am getting the following error in the trace file. What does SSH error 109 indicate? Did they send us the wrong type of key for this property?


[8/7/2009 12:11 PM] EldoS SFTP Adapter: Loading private key
[8/7/2009 12:11 PM] EldoS SFTP Adapter: Loading trusted keys
[8/7/2009 12:11 PM] EldoS SFTP Adapter: Failed to load keys, error 3329.
[8/7/2009 12:11 PM] EldoS SFTP Adapter: Opening connection to SFTP server
[8/7/2009 12:11 PM] EldoS SFTP Adapter: Running key validation handler
[8/7/2009 12:11 PM] EldoS SFTP Adapter: SSH error 109
[8/7/2009 12:11 PM] EldoS SFTP Adapter: Call stack: at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.client_OnError(Object Sender, Int32 ErrorCode)
at SBSimpleSftp.TElSimpleSFTPClient.DoError(Object Sender, Int32 ErrorCode)
at SBSSHCommon.TElSSHClass.DoError(Int32 ErrorCode)
at SBSSHClient.TElSSHClient.SSH2ParseKexDHGexReply(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.DoSFTPOperation(IBaseMessage message, AdapterProperties props, Boolean upload, ArrayList fileList)
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.PerformWaitCallback(Object state)

[8/7/2009 12:11 PM] 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.SSH2ParseKexDHGexReply(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.DoSFTPOperation(IBaseMessage message, AdapterProperties props, Boolean upload, ArrayList fileList)
[8/7/2009 12:11 PM] EldoS SFTP Adapter (send): Error: Connection lost (error code is 10058)



Thanks,
Kel
#10760
Posted: 08/07/2009 12:33:33
by Ken Ivanov (EldoS Corp.)

Error 109 stands for ERROR_SSH_HOST_KEY_NOT_VERIFIABLE error code. The previous error reported by the adapter (Failed to load keys, error 3329) is the SB_ERROR_SSH_KEYS_INVALID_PUBLIC_KEY one, which obviously leads to the further key validation issue.

There is a number of different SSH key formats (as there is no unified standard for public key format officially defined). BizCrypto understands keys in IETF, OpenSSH, Putty and binary formats. However, some non-popular servers use other formats to store public keys. In this case the public key should be converted to one of the formats understood by BizCrypto prior to using it.

Reply

Statistics

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