Solved

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

Posted on 2013-01-10
1
5,229 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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