It may help someone
Copy the pem file on the machine, then copy the contents of the pem file to the .ssh / id_rsa file, which you can use with the command below or your own
cat my.pem > ~/.ssh/id_rsa
try ssh localhost, it should work with other machines in the cluster
source share