On connecting to AIX Server, we are getting "**SSH - Negotiation failed. Server signature is not valid**". I am attaching Verbose logs of the same. Connections to same server is working fine with WinSCP.
I tried the solution from this post, but it did not help.
https://www.componentpro.com/qa/negotiation-failed-server-signature-not-valid-v6-8-4119
Here is the link to the Verbose logs: https://drive.google.com/file/d/1vgdKH2dUurrfiAlGZBVHxe26JyDIQn9I/view?usp=sharing
Here is code for connection -
this.newclient = new ComponentPro.Net.Sftp(this.components);
if (_loginSettings.SftpServer != null)
{
if (_loginSettings.SftpServer.Length > 0 && _loginSettings.SftpPort > 0)
{
try
{
newclient.Connect(_loginSettings.SftpServer, _loginSettings.SftpPort);
}
catch (Exception ex)
{
CommonFunctions.WriteLogInFile("Connection with DSS failed. Attempting with RSA - " ex.StackTrace "\n", ex);
newclient.Config.PreferredHostKeyAlgorithm = SecureShellHostKeyAlgorithm.RSA;
newclient.Connect(_loginSettings.SftpServer, _loginSettings.SftpPort);
}
if (newclient.IsConnected)
{
AuthenticateClient();
}
}
}
edited 5/28/2021 8:19:53 AM
asked 5/3/2021 8:57:49 AM