This project has moved. For the latest updates, please go here.

Unable to connect using public/private key authentication

Jun 8, 2009 at 5: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

------------------------------

Information:

Type: System.Exception

Target:

Message: Uri:SFTP://elink-sshftp.bankofamerica.com:22/CTEC715O/100715.TXT

Stacktrace:

 

------------------------------

Type: System.Exception

Target: Void connect(Boolean)

Message: Unable to connect to Sftp host [elink-sshftp.bankofamerica.com]

Stacktrace:

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

Stacktrace:

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)

Coordinator
Jun 8, 2009 at 6: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:

http://blogical.se/blogs/mikael/archive/2008/03/05/biztalk-sftp-adapter-troubleshooting.aspx

for more information about public keys are supported:

http://www.tamirgal.com/blog/page/SharpSSH.aspx

HTH

//Mikael