.pem certificate file not readable on MacOS

Hello,

here are some terminal commands to connect via ssh to AWS my Cloud Services instance, but the security key pair certificate downloaded to my computer does not seem to be readable, and my Keychain cannot accept it. Any ideas???

Here is the error:

"mymac ~ % cd downloads mymac downloads % chmod 400 us-east-kp1.pem mymac downloads % ssh -i ~/.ssh/us-east-kp1.pem "amazon instance" "amazon instance": Permission denied (publickey,gssapi-keyex,gssapi-with-mic)."

Any ideas???

Thanks, TJ

Please format that as code.

It looks to me as if the .pem file is still in “downloads”, not ~/.ssh

ssh -v may help.

endecopt, thx for pointing this out. i did realize this and redid shortly after, still got the error:

" tj downloads % ssh -i "us-east-kp1.pem" "amazon instance"

"amazon instance": Permission denied (publickey,gssapi-keyex,gssapi-with-mic). "

i just re-did the instance with new key, all good now

.pem certificate file not readable on MacOS
 
 
Q