Connection to Amazon Linux 2023 or Alma Linux machines fail
On Amazon Linux 2023/Alma Linux:
When using the on-host agent method, connection to Amazon Linux 2023/Alma Linux machines fail with the following error message:
Error loading Python lib '/tmp/_MEI0tlDLn/libpython3.9.so.1.0': dlopen: libcrypt.so.1: cannot open shared
When using the agentless method, connection to Amazon Linux 2023/Alma Linux machines fail with the following error message:
The agent has been abruptly terminated on the remote host. Channel not open for sending
The above issue occurs when the operating system libcrypt.so.1 native library is not available on Amazon Linux 2023/Alma Linux machines.
Workaround:
On Amazon Linux 2023/Alma Linux machine, install the libxcrypt-compat package using the following command:
sudo dnf install libxcrypt-compat