Invalid DSA key for signing when connecting with SFTP in Production

0
Where is the location that Component Pro stores any cached autogenerated keys used for signing during a connection or does it? We might have a permissions errors. We are using a licensed ComponentPro 6.8.20.4155. When trying to connect to a site on one of our new production servers, we are getting "Failed to sign data! Invalid key: Invalid DSA key for signing" response. We are not using public or private keys and only doing a connect and authentication with user name and password. The target FTP site has an RSA hostkey and we are not doing hostkey validation. Connecting to the same site using SFTP protocol with FileZilla FTP client, there is no problem. Also trying to connect using the powershell example from the ComponentPro documentation, below, produces the same error. When trying to connect using another server in our network, the powershell script below works, so basically component pro works on one server but not the other with the same software install and yet FileZilla works on that erroring server. Any insight into the key usage behind the scenes I believe will help us solve this. Thanks Tim [Reflection.Assembly]::LoadFrom("C:\bin\ComponentPro.Sftp.dll") $client = New-Object ComponentPro.Net.Sftp $client.Connect("123.45.67.89",1234) Exception calling "Connect" with "2" argument(s): "Negotiation failed. Disconnected by the server ('Failed to sign data! Invalid key: Invalid DSA key for signing; q (160) < 224')."
 
asked 12/24/2019 9:17:18 PM
add a comment

1 Answers

0
It looks like an issue with the cert on that client PC. You can try to limit the Host Key Algorithms using `sftp.Config.HostKeyAlgorithms = SecureShellHostKeyAlgorithm.RSA`
 
answered 1/16/2020 4:22:08 PM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged ultimate sftp or ask your own question.