Subject: Getting "Server Signature is not valid" on connecting to AIX server 7.1 (Open SSH 8.1)
Date: 2021-05-28 08:19:53
From: ARCON Support
Source: getting-server-signature-not-valid-connecting-aix-server-open-ssh-8-1
----------------------------------------------------------------------

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();
			}

		}
	}

----------------------------------------------------------------------

Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index