Installation toolkit operation fails with PKey parsing or OpenSSH keys related errors

The installation toolkit operation might fail with a PKey parsing-related error on SLES or an OpenSSH keys related error on Red Hat Enterprise Linux® or Ubuntu.

The error message on SLES is similar to the following message:
ArgumentError: Could not parse PKey: no start line\n'
The error message on Red Hat Enterprise Linux or Ubuntu is similar to the following message:
ERROR: NotImplementedError: OpenSSH keys only supported if ED25519 is available
net-ssh requires the following gems for ed25519 support
Workaround:
  1. Do one of the following steps:
    • Create a fresh SSH key by using the -PEM option. For example, ssh-keygen -m PEM
    • Convert the existing SSH key by using the following command.
      ssh-keygen -p -N "" -m pem -f /root/.ssh/id_rsa
  2. Retry the installation procedure by using the installation toolkit.