This project has moved and is read-only. For the latest updates, please go here.

Unable to connect using public/private key authentication

Jun 8, 2009 at 6:38 AM

Hi I need to connect to SFTP Server where authentication is based on public/private keys. I have tried to use both public key and private key in the identity file portion. However I did not get any fruitful result. Biztalk is not receiving file from the SFTP Server and I get the below mentioned error. Can anyone please let me know what the issue can be!!

Method: Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.EndpointTask

Error: Uri:SFTP://ServerName:22/FolderName/100715.TXT



Type: System.Exception


Message: Uri:SFTP://




Type: System.Exception

Target: Void connect(Boolean)

Message: Unable to connect to Sftp host []


at Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.PickupFilesAndSubmit()

at Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.EndpointTask()



Type: Tamir.SharpSsh.jsch.JSchException

Target: Void connect(Int32)

Message: Auth fail


at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)

at Tamir.SharpSsh.SshBase.ConnectSession(Int32 tcpPort)

at Tamir.SharpSsh.SshBase.Connect(Int32 tcpPort)

at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.connect(Boolean force)

Jun 8, 2009 at 7:35 AM

As you may already know, we are relying on a 3d party open source library for the ssh connectivity, and as you've already experienced, the exception messages leaves much to wish for. I'd go about using the Bitvise Tunnelier for testing the connections before configuring BizTalk. That way you know there are no other issues not related to the adapter or BizTalk.

I wrote an article about troubleshooting the adapter, which might come in handy:

for more information about public keys are supported: