I have generated SSH keys for a new server installation according to the procedure outlined here. However, when I copy the contents of id_rsa.pub to my keys list on GitHub, I get the error message "Key is invalid. Ensure you've copied the file correctly."
The generated key is valid, and I am copying it exactly as is (all in one line with no whitespace at the beginning/end).
Anybody have an idea what could be going on?









ssh-rsathat comes before the key itself, yes? - David Cainssh-keygenthen the format won't work. I got this messageKey is not in OpenSSH format. I fixed it usingssh-keygen -t rsa -b 4096, then copy this key to Githubcat ~/.ssh/id_rsa.pub- Dio Phung