- Pivotal Greenplum Database 5.0 (other versions potentially affected)
- Red Hat Enterprise Linux (RHEL) 7.4
- FIPS mode enabled
- Older SSH key exchange algorithms (
When attempting to use the tools `gpssh-exkeys` or `gpseginstall`, the key exchange fails with the following error and repeatedly requests a password:
Incompatible ssh peer (no acceptable kex algorithm)
[root@master ~]# gpssh-exkeys -f hostfile_exkeys [STEP 1 of 5] create local ID and authorize on local host ... /root/.ssh/id_rsa file exists ... key generation skipped [STEP 2 of 5] keyscan all hosts and update known_hosts file [STEP 3 of 5] authorize current user on remote hosts ... send to node1 *** *** Enter password for node1: [ERROR node1] Incompatible ssh peer (no acceptable kex algorithm) *** *** Enter password for node1:
Currently, the Greenplum management tool suite uses an older version of the Python Paramiko libraries which do not support newer ssh key exchange algorithms. When the older key exchange algorithms are disabled on a server that is FIPS complaint, the key exchange mediated by the Greenplum tools will fail.
A Defect has been opened for this issue. Please contact Pivotal Support if you have questions or concerns.
As the keys only need to be shared once, and as the
gpseginstall tool and
gpssh-exkeys will skip any previously shared keys, a workaround is as follows:
1. With FIPS enabled, use
ssh-copy-id to copy SSH keys which have been generated using
2. Disable FIPS, or add the following kex algorithms to
/etc/ssh/sshd_config and reload sshd:
3. Complete the installation of gpdb using
4. At this point, the keys are already exchanged, and they will not need to be exchanged again unless you add another Node to the cluster.
5. Thus, you can re-enable FIPS to be fully compliant by removing the additional kex algorithms in
/etc/ssh/sshd_config - the SSH keys which do not require password authentication are in place, and the kex algorithm is no longer relevant, as keys do not need to be re-shared.