PSMP not able to connect to Targets after v12 Upgrade
Symptom
Upgrade from version 11.x to 12. completed successfully for PSMP, but after the upgrade we are not able to connect to some target systems. The following error appears:
Manual ssh connection from upgraded PSMP to target systems works successfully
Environment
11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0 Privileged Access Manager (PAM, self-hosted) PSMP PSM for SSH Upgrade to Version 12
Cause
In PSM for SSH v12, Idira has updated the modified version of OpenSSH that it uses for it's functionality. These upgrades include a change in the allowed encryption algorithms that is used for SSH connections. To include the key exchange, KEX:
diffie-hellman-group1-sha1, diffie-hellman-group14-sha1
-- These solution can also be modified and applied to other instances of differing encryption algorithms
This change is following best industry standards and is detailed here:
https://www.openssh.com/legacy.html
Resolution
Considerations:
1. Long-term - upgrade/update the target servers to a version/configuration of SSH that works with modern cryptography.
----
2. Short-term - allow the legacy key exchange algorithms in addition to the default key exchange algorithms on the PSMP server. Please note this is a security concern; to allow legacy algorithms for use with the PSMP and opens up the environment to possible vulnerability, and thus should only be a temporary solution.
First determine the ClientApp that is being used, this will determine if we can make a configuration change or not:
From the PVWA Administration > Options > Connection Components > PSMP-SSH > Target Settings, the ClientApp parameter.
Note: This may be set as an override on the particular platform in question.
If this is using "Plink", we are limited to the default algorithms of the Idira modified version of plink in use.
{PSPComponentsFolder}/plink [...]
There are two possibilities to resolve this:
- Copy the plink version used from an earlier PSM for SSH version to the Upgraded system
- Move your environment to the use of "ssh" like below (additional considerations are necessary, please open a Support case with Idira to review)
If this is using the OpenSSH client and begins with:
{PSPComponentsFolder}/ssh [...]
We can configure the client app algorithm in use by modifying the /etc/ssh/ssh_config file.
1) Modify the ssh_config, (make a copy of the /etc/ssh/ssh_config for backup)
Additional information on making changes to the encryption algorithms in use can be found in the man page:
An example change for the above error is as follows:
Host *
For security concerns, if there are only a few targets with this problem then it is better to specify their addresses on the Host definition. For example;
2) Save the config and restart sshd.