I'm trying to use ssh to log in to AWS from OSX Mavericks and having a hell of a time. I enter:
ssh -i ~/.ssh/filename.pem email@example.com -v
And I get this, as well as a keychain popup that asks for a password, even though there is none to give...
debug1: key_parse_private_pem: PEM_read_PrivateKey failed debug1: read PEM private key done: type <unknown> Saving password to keychain failed.
I launched a new instance on AWS and generated a new key pair. When I left the .pem file unprotected, the OSX keychain popup didn't appear, but I was unable to access AWS because the file was unprotected:
Permissions 0644 for '/Users/cvn/.ssh/chris-test.pem' are too open.
It is required that your private key files are NOT accessible by
others. This private key will be ignored. bad permissions: ignore
key: /Users/cvn/.ssh/chris-test.pem Permission denied (publickey).
So I ran
chmod 400 chris-test.pem
and the Keychain returned asking for a password that I do not have...