|
I am writing an automated process to do connect to an SFTP site for downloading files. I am evaluating a trial version of Rebex SFTP for this. Using Visual Studio 2008, Visual Basic, I created a simple program that does this:
I can successfully connect to this SFTP site using Filezilla, answering Yes to the trust question. When I run my program, I get message "Key exchanged failed" on the connect command. I was kind of expecting to get a popup of some kind that asked me the same type of trust question that Filezila did, so that the key could be cached and re-used. I talked to the owner of the SFTP site. They sent me their public key and said I may need to load it on my PC and reference it in my application. But I don't know how to do this. I'd appreciate any help in getting this to work. Here's the log file.
|
|
This looks like the server is trying to use a 4096-bit DSS key, but this is not a valid key size for DSS algorithm. FileZilla prefers RSA algorithm to DSS and since most SSH servers support both, it didn't have a chance to run into this issue. To force RSA in Rebex SFTP, use this code:
Does this solve the issue? By the way, Rebex SFTP won't display the public key popup, but you should still verify the server's public key fingerprint yourself - see the tutorial for more info. Added the code. Still not working. Error message is "The client and the server have no common algorithms." thanks
(20 Jul '11, 14:34)
nanc
Looks like this SSH server is one of those that don't support RSA... In that case, remove the added code and replace your copy (all of them) of Rebex.Security.dll with this one. That should make Rebex SFTP work with 4096 "DSS" keys, even though it's an invalid size.
(20 Jul '11, 15:04)
Lukas Pokorny ♦♦
|