Hi Lukas,
This error occurs on only one server so far.
About external plugins, in the constructor of class that uses SSH we have:
// import NIST and Brainpool curves
AsymmetricKeyAlgorithm.Register(EllipticCurveAlgorithm.Create);
// import Curve25519
AsymmetricKeyAlgorithm.Register(Curve25519.Create);
// import Ed25519
AsymmetricKeyAlgorithm.Register(Ed25519.Create);
In our code we have 4 attempts to Connect, when raise an exception the next code is used
1º Attempt:
Rebex.Security.Cryptography.CryptoHelper.UseFipsAlgorithmsOnly = false;
ssh.Settings.SshParameters.KeyExchangeAlgorithms = SshKeyExchangeAlgorithm.Any;
ssh.Settings.SshParameters.HostKeyAlgorithms = SshHostKeyAlgorithm.Any;
ssh.Connect(host, port);
2º Attempt:
ssh.Settings.SshParameters.HostKeyAlgorithms = SshHostKeyAlgorithm.RSA;
ssh.Connect(host, port);
3º Attempt:
ssh.Settings.SshParameters.KeyExchangeAlgorithms = SshKeyExchangeAlgorithm.DiffieHellmanGroup1SHA1;
ssh.Connect(host, port);
4º Attempt:
ssh.Settings.SshParameters.EncryptionModes = SshEncryptionMode.CBC | SshEncryptionMode.CTR;
// disable ETM MAC ciphers:
ssh.Settings.SshParameters.SetMacAlgorithms("hmac-sha2-256", "hmac-sha2-512", "hmac-sha1", "hmac-sha1-96");
ssh.Connect(host, port);
In every attempt the error is the same: System.NullReferenceException.
We have not yet tried to run this same code with the latest rebex version. As this occurs in the production environment and the manager considers the tool upgrade as a last resort since this error does not occur on other servers.
Thank you in advance.