when i tried generating SSH key by following the steps given in the github documentation page after the first command it has asked to run
$ ssh-keygen -t ed25519 -C "[email protected]"
this gives me the key and asks to enter pass phrase when i copy the key and paste into github > settings > SSH keys > new ssh key it shows me this error
Key is invalid. You must supply a key in OpenSSH public key format
so how do i fix this ?
Edit : i was watching this tutorial on how to upload projects on git i followed the exact tutorial unitl 20:28 where the tutor goes to the git hub page and copy pastes the command in the terminal after all previous commands it works for him but dosent work for me . im new to linux ubuntu so i dont know the difficult terms this is the most i can i explain
Solved: i was pasting the wrong thing in the github > settings > SSH keys > new ssh key the correct thing i have to paste was the code written in the file mentioned in the output something like
~/.ssh/id_ed25519.pub
this file will be in /home/.ssh there might be multiple files check the exact file which is mentioned in the output of the terminal open that file and paste the content in the file in github > settings > SSH keys > new ssh key and this time it should not show any error