Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Is the key being tried by ssh (try connecting with ssh -vv and inspect the debug output)? Commented Apr 5, 2023 at 9:18
  • doesn't ssh-keygen -m pem create the .pub file that would be required for ssh-copy-id already? but I agree with the above, the verbose output from the client will probably shed more light Commented Apr 5, 2023 at 9:24
  • @JaromandaX you are correct, I just tried it. ssh-keygen -m pem will create one private keyfile with the name of your choice and a name.pub in the same directory -- BUT that file is not in the BEGIN RSA PUBLIC KEY format, but in the ssh-rsa format, which is what the second command does. It's possible that this is the format required, I think for example Oracle Cloud wants this. Commented Apr 5, 2023 at 10:11