User (Old forums)MemberJuly 29, 2013 at 4:57 pmPost count: 23064
I’m trying to connect to a vendor’s SFTP site, but getting the following error message:
“Failed to negotiate SFtp protocol version with the server. Client requested version ‘6’. Server specified version ‘4’.”
I’ve tried searching for this, but couldn’t find anything. What do I need to do about this?
Applies to Xceed SFTP for .NET. Imported from legacy forums. Posted by Brad (had 850 views)Diane [Xceed]ModeratorJuly 30, 2013 at 1:51 pmPost count: 1353
Our component supports version 3 and 6, but not 4 and 5. Your server says it supports 4 only but our component requests version 6 by default. So that causes the negotiation to fail.
A modification was done recently to add a “version re-negotiation” feature. This modification has not been released yet, however it is available the beta build posted here: http://xceed.com/CS/forums/thread/32885.aspx
You can either modify your code to request 3 directly:
SFtpSession sftp = new SFtpSession( sshClient, 3 );
or you could use the latest beta build to use the “version re-negotiation” feature that will adapt automatically to 3 or 6 according to the server:
SFtpSession sftp = new SFtpSession( sshClient );
The way it works is that when the SFtpSession constructor is not given a specific version of the SFtp protocol to request, the component always asks for version 3.
If the server supports version 3, the component then checks if the server also supports version re-negotiation. If it doesn’t, the session will proceed using version 3 of the protocol.
If re-negotiation is supported, the component checks if the server supports version 6 of the protocol. If so, we notify the server to now proceed with version 6. If not, again, we proceed with version 3.
In your case, we suspect that your server will accommodate a request for version 3 of the SFtp protocol and allow you to use the component without issue.
Applies to Xceed SFTP for .NET. Imported from legacy forums. Posted by Diane [Xceed] (had 233 views)
- You must be logged in to reply to this topic.