Key is invalid. you must supply a key in openssh public key format

This only way! Thank yooouu!!

1 Like

I someone the git bash generates 02 files: keyfile & keyfile.pub (this one is PUBLISHER FILE), is normal, because file with .pub is publisher files, so I fixed that only open keyfile.pub with NOTEPAD and copy the key. Have a good day!

1 Like

If you have not yet resolved the issue, try the following:
go to the terminal window and insert the following:
pbcopy < ~/.ssh/id_ed25519.pub

press enter
You may think that nothing had happened visually, but in fact public key was copied in OpenSSH format.
After that, return to Github where in the “Key” area press command-v (ctrl v).
In area “Key” must be inserted your key in the format OpenSSH.

If you have not yet resolved the issue, try the following:
go to the terminal window and insert the following:
pbcopy < ~/.ssh/id_ed25519.pub

press enter
You may think that nothing had happened visually, but in fact public key was copied in OpenSSH format.
After that, return to Github where in the “Key” area press command-v (ctrl v).
In area “Key” must be inserted your key in the format OpenSSH
:wink:

Thank you! This works.