Solved

SharpSSH error - Tamir.SharpSsh.jsch.JSchException: invalid server's version String

Posted on 2013-01-10
1
4,800 Views
Last Modified: 2013-01-11
I get a error returned when I get to the port directive of SharpSSH
although, It worked once during testing.

Tamir.SharpSsh.jsch.JSchException: invalid server's version String
   at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
   at Tamir.SharpSsh.jsch.Session.connect()
   at Tamir.SharpSsh.SshBase.ConnectSession(Int32 tcpPort)
   at Tamir.SharpSsh.SshBase.Connect(Int32 tcpPort)
   at DEPRO_SPARK_CRM.Program.processMailer() in C:\_TFS\DendreonSPARKAutomation
\DEPRO-SPARK-CRM\Program.cs:line 139 Exception caught

I understand that this error might occur if the remote server is using SSH 1.5.

I haven't been able to get an answer as of yet.

Is there anything you can share.

Isaac
0
Comment
Question by:TechIsaac
1 Comment
 
LVL 21

Accepted Solution

by:
masterpass earned 500 total points
Comment Utility
I ran into the similiar problem and it took me a lot of time to find the real cause of this issue. IMO there are two cases :

1. make sure that the sFTP version is SSH 2.0 or higher
2. The server you are trying to connect to is rejecting connection (this was the cause in my case)

What happened in our case was that, the machine was configured in such a way that it did not allow more than 1 connection in a time interval of 20 minutes which means that if I have a sftp file every 15 minute or so, it would fail. To verify this, you need to login to the FTP machine and look at events and make sure that every thing is good. If not, make sure that you configure it properly according to your needs.

Hope this helps.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now