Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-01-10
1
Medium Priority
?
5,995 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 21

Accepted Solution

by:
masterpass earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

670 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