![]() BTW, the PEM labels normally used by OpenSSH below 7.8 for an RSA keyfile are -BEGIN/END RSA PRIVATE KEY-, as shown on the webpage you link, NOT RSA KEY as you say. Putty cannot use an OpenSSH keyfile, and OpenSSH cannot use a Putty keyfile.Ĭhanging the PEM labels on a file does not change its contents. Putty uses its own format for privatekey files, which is different from the formats OpenSSH uses. The problem is between Putty and OpenSSH. You're using the OpenSSH client program ssh, run from a shell in iTerm2, to do so. You're not really using iTerm2 to 'login to the server'. So I remove everything everything except the private key and I add '-BEGIN RSA KEY-' and '-END RSA KEY-' like on the website. My file is formatted like this PuTTY-User-Key-File-2: ssh-rsa I open the file and noticed that it's not in same format as in the the webpage. Load key "/path/to/privatekey": invalid format. I looked at the website and it had instructions to secure the file, so I tried: It is required that your private key files are NOT accessible by others. Permissions 0644 for '/path/to/privatekey' are too open. ![]() I saved my private key file from my windows laptop and saved it into my mac. I tried looking up how to add my private key here I tried the command ssh -p portNumber but I got Permission denied (publickey)., which I am guessing is because I didn't add my private key like I was doing with Putty. I switched to Mac and I am using iTerm2 to attempt to log into the server. I usually use putty on windows for ssh login, which has an option to add a private key for logging in.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |