Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in .NET FTP by (220 points)
I'm testing out some code to use the SecureFTPConnection and with the ServerValidation set to None everything works fine. However, when I set it to Automatic and point it at my known_hosts file I see the following error in the log:

ERROR [SSHFTPClient] 13 Jan 2011 11:04:34.072 : No ssh-dss public key found for host 'mysftphost.com'

The known_hosts file does exist and it does have a key for that host. The issue seems to be that the PreferredHostKeyAlgorithms is set to DSA | RSA and that it only actually checks for the DSA key when it is set this way. If I set the PreferredHostKeyAlgorithms to RSA it finds the key in the file and connects correctly.

I can use this workaround for now but I'd like to be able to support both key types if possible...

Thanks!
Matt

2 Answers

0 votes
by (162k points)
For DSA | RSA, the client is sending to the server a list consisting of DSA,RSA and the server always sends back the first one.

You need to be able to send RSA,DSA so we'll work out a way to do this - we might have to allow people to manually specific the order.
0 votes
by (162k points)
Ok, we've got a build that permits you to do this. Email us for it if you'd like it now, or else it'll be out in 7.3.0, which will be released next week.

Categories

...