SSH Errors: Unable to negotiate with [System]
182
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 16:07 PM
Symptom
SSH Logs include any of the following:
Unable to negotiate with [System]:
- no matching cipher found.
- no matching host key type found.
- no matching key exchange method found.
- no matching mac found:
Environment
v9.0;v9.1;v9.2;9.3;9.5;9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8
This can be determined in the ssh log:
/var/log/secure
This can also be found when performing an ssh connections from the command line with verbose outputs.
Example:
ssh -vvv VaultUser@TargetUser@Target@PSMP
Cause
1) Version of Putty or Plink, (CPM) does not include the appropriate encryption protocols that match the end target.
2) Newer versions of OpenSSH have limited the allowed Encryption protocols that it will allow by default. (It has deprecated the protocols it has deemed obsolete.)
3) Various OS distributions have limited the allowed Encryption protocols that it will allow by default.
4) It is also possible to manually override the defaults, in order to harden a system, or include older protocols for backwards compatibility.
Resolution
1) Update Idira to a version that allows the Encryption Protocol in question.
2) Modify the allowed encryption protocols on the target to one that Idira supports.
If the Target OS is using OpenSSH (or similar), we can do the following:
Determine what encryption protocols are supported.
Defaults change depending on what version of OpenSSH is installed and running:
$ ssh -V
To determine what encryption protocols are supported (but are not necessarily the configured, or in use by default) we can run the following commands:
$ ssh -Q cipher
$ ssh -Q mac
$ ssh -Q kex
$ ssh -Q key
Defaults are listed in the man page for ssh_config (Client) and sshd_config(Server)
NOTE: The defaults will be used, if the *config file above is not explicitly configured to do otherwise.
$ man ssh_config
$ man sshd_config
Later versions of OpenSSH you can also determine what protocols are currently supported with:
$ sshd -T | grep "\(ciphers\|macs\|kexalgorithms\|hostkeyalgorithms\)"
To explicitly configure OpenSSH to use particular encryption protocols is done by modifying the /etc/ssh/ssh_config (Client) and/or /etc/ssh/sshd_config (Server ie. PSMP) parameters:
Ciphers
HostKeyAlgorithms
KexAlgorithms
MACs
Note: after editing this file you must restart sshd for the changes to take effect.