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

Connection timeouts / USERAUTH fail (51)

Jun 1, 2012 at 8:56 AM

Currently attempting to use the adapter to connect to a remote server and getting timeout issues.

The adapter works ok in our dev environment against our own SFTP Server, but when we switch this to the suppliers SFTP we get the error below.  We can use two different SFTP (WinSCP and CoreFTP) clients to connect to the remote server without any problems, so we know the credentials, etc are correct.

Currently waiting for the supplier to check their logs, but has anyone any ideas what the issue might be?

Using the the clients, what we have seen is that the suppliers server has a banner, so wonder if this is causing the issue?

Any ideas?

 

Event Type:        Error
Event Source:    SFTPAdapter
Event Category:                None
Event ID:              0
Date:                     30/05/2012
Time:                     11:20:03
User:                     N/A
Computer:          xxxxxxxxxx.xxxxxxx.xxx.xx
Description:
Method: Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.EndpointTask
Error: Uri:SFTP://xxx.xxxxxxxx.xx.xx:10023/Inbox/*

------------------------------
Information:
Type: System.Exception
Target:
Message: Uri:SFTP://xxx.xxxxxxxx.xx.xx:10023/Inbox/*
Stacktrace:

------------------------------
Type: System.Exception
Target: Void connect(Boolean)
Message: Unable to connect to Sftp host [xxx.xxxxxxxx.xx.xx]
Stacktrace:
   at Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.PickupFilesAndSubmit()
   at Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.EndpointTask()
 
------------------------------
Type: Tamir.SharpSsh.jsch.JSchPartialAuthException
Target: Void connect(Int32)
Message: USERAUTH fail (51). Unable to connect to the host using the [xxxxxxxxxxxxxxxxxxxx] user.
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)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 

Using the trace flag and debug trace we get the following:

[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void .ctor()
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void Initialize(System.String)
[8392]   adapterGuid={b4f8c77d-08c9-4b82-9922-abb646654deb}
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: System.String SetConfigurationUri(System.String, System.String)
[8392]   configuration=***CONFIDENTIAL***
[8392]   uri=SFTP://xxx.xxxxxxxx.xx.xx:10023/Inbox/*
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: System.String ValidateConfiguration(Microsoft.BizTalk.Adapter.Framework.ConfigType, System.String)
[8392]   configType=ReceiveLocation
[8392]   configuration=***CONFIDENTIAL***
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void ReadAdapterInfoFromRegistry()
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void Instantiate()
[8392]   adapterName=Blogical.Shared.Adapters.Sftp v1
[8392]   assemblyFile=C:\Program Files (x86)\Blogical\Blogical.Shared.Adapters.Sftp\Blogical.Shared.Adapters.Sftp.Management.dll
[8392]   typeName=Blogical.Shared.Adapters.Sftp.Management.StaticAdapterManagement
[7992] Adapter.Adapter name: Sftp Receive Adapter
[7992] Adapter.Load
[7992] [SftpReceiveAdapter] Adapter Initializing...
[7992] Adapter.Initialize
[7992] [SftpReceiveAdapter] Adapter Initialized
[7992] [SftpReceiverEndpoint] ReadLocationConfiguration called
[7992] [SftpReceiverEndpoint] Username/Password Authentication
[7992] [TimeSchedule]Executing GetNextActivationTime
[7992] [SftpReceiverEndpoint] Start called
[7992] [SftpReceiverEndpoint] ControlledTermination.Enter()
[7992] [SftpReceiverEndpoint] PickupFilesAndSubmit called [SFTP://xxx.xxxxxxxx.xx.xx:10023/Inbox/*]
[7992] [SftpConnectionPool] Connecting to xxx.xxxxxxxx.xx.xx
[7992] [SftpConnectionPool] Disconnecting from xxx.xxxxxxxx.xx.xx
[7992] [SftpConnectionPool] Connection has timed out
[7992] [SftpConnectionPool] Reconnecting to xxx.xxxxxxxx.xx.xx
[7992] [SftpConnectionPool] Connecting to xxx.xxxxxxxx.xx.xx
[7992] [SftpConnectionPool] Connection has timed out
[7992] [SftpConnectionPool] Disconnecting from xxx.xxxxxxxx.xx.xx
[7992] [SftpConnectionPool] Connection has timed out

 

 

 

 

Jun 1, 2012 at 1:03 PM
As I've said many times before, -I apologizeabout the error messages passed form the under lying SFTP framework...

We have had problems with custom banners before, and I would not be surprised if this is what causes the problem. However it's kinda hard to debug and fix from my side without access to the actual ssh server :(

//Mikael


From: [email removed]
To: [email removed]
Date: Fri, 1 Jun 2012 00:56:20 -0700
Subject: Connection timeouts / USERAUTH fail (51) [SftpAdapter:357946]

From: bmilburn
Currently attempting to use the adapter to connect to a remote server and getting timeout issues.
The adapter works ok in our dev environment against our own SFTP Server, but when we switch this to the suppliers SFTP we get the error below. We can use two different SFTP (WinSCP and CoreFTP) clients to connect to the remote server without any problems, so we know the credentials, etc are correct.
Currently waiting for the supplier to check their logs, but has anyone any ideas what the issue might be?
Using the the clients, what we have seen is that the suppliers server has a banner, so wonder if this is causing the issue?
Any ideas?

Event Type: Error
Event Source: SFTPAdapter
Event Category: None
Event ID: 0
Date: 30/05/2012
Time: 11:20:03
User: N/A
Computer: xxxxxxxxxx.xxxxxxx.xxx.xx
Description:
Method: Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.EndpointTask
Error: Uri:SFTP://xxx.xxxxxxxx.xx.xx:10023/Inbox/*
------------------------------
Information:
Type: System.Exception
Target:
Message: Uri:SFTP://xxx.xxxxxxxx.xx.xx:10023/Inbox/*
Stacktrace:
------------------------------
Type: System.Exception
Target: Void connect(Boolean)
Message: Unable to connect to Sftp host [xxx.xxxxxxxx.xx.xx]
Stacktrace:
at Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.PickupFilesAndSubmit()
at Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.EndpointTask()

------------------------------
Type: Tamir.SharpSsh.jsch.JSchPartialAuthException
Target: Void connect(Int32)
Message: USERAUTH fail (51). Unable to connect to the host using the [xxxxxxxxxxxxxxxxxxxx] user.
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)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Using the trace flag and debug trace we get the following:
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void .ctor()
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void Initialize(System.String)
[8392] adapterGuid={b4f8c77d-08c9-4b82-9922-abb646654deb}
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: System.String SetConfigurationUri(System.String, System.String)
[8392] configuration=***CONFIDENTIAL***
[8392] uri=SFTP://xxx.xxxxxxxx.xx.xx:10023/Inbox/*
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: System.String ValidateConfiguration(Microsoft.BizTalk.Adapter.Framework.ConfigType, System.String)
[8392] configType=ReceiveLocation
[8392] configuration=***CONFIDENTIAL***
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void ReadAdapterInfoFromRegistry()
[8392] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void Instantiate()
[8392] adapterName=Blogical.Shared.Adapters.Sftp v1
[8392] assemblyFile=C:\Program Files (x86)\Blogical\Blogical.Shared.Adapters.Sftp\Blogical.Shared.Adapters.Sftp.Management.dll
[8392] typeName=Blogical.Shared.Adapters.Sftp.Management.StaticAdapterManagement
[7992] Adapter.Adapter name: Sftp Receive Adapter
[7992] Adapter.Load
[7992] [SftpReceiveAdapter] Adapter Initializing...
[7992] Adapter.Initialize
[7992] [SftpReceiveAdapter] Adapter Initialized
[7992] [SftpReceiverEndpoint] ReadLocationConfiguration called
[7992] [SftpReceiverEndpoint] Username/Password Authentication
[7992] [TimeSchedule]Executing GetNextActivationTime
[7992] [SftpReceiverEndpoint] Start called
[7992] [SftpReceiverEndpoint] ControlledTermination.Enter()
[7992] [SftpReceiverEndpoint] PickupFilesAndSubmit called [SFTP://xxx.xxxxxxxx.xx.xx:10023/Inbox/*]
[7992] [SftpConnectionPool] Connecting to xxx.xxxxxxxx.xx.xx
[7992] [SftpConnectionPool] Disconnecting from xxx.xxxxxxxx.xx.xx
[7992] [SftpConnectionPool] Connection has timed out
[7992] [SftpConnectionPool] Reconnecting to xxx.xxxxxxxx.xx.xx
[7992] [SftpConnectionPool] Connecting to xxx.xxxxxxxx.xx.xx
[7992] [SftpConnectionPool] Connection has timed out
[7992] [SftpConnectionPool] Disconnecting from xxx.xxxxxxxx.xx.xx
[7992] [SftpConnectionPool] Connection has timed out




Read the full discussion online.
To add a post to this discussion, reply to this email (SftpAdapter@discussions.codeplex.com)
To start a new discussion for this project, email SftpAdapter@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com