Solved

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

Posted on 2013-01-10
1
4,994 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
ID: 38764978
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Re-position the objects 7 96
SSRS ReportViewer report timeout 7 100
ASP.net Javascript use multiple sliders 2 16
Message not shown 5 29
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,…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

919 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

19 Experts available now in Live!

Get 1:1 Help Now