Have you wondered why you get this weird error while trying to push or clone code from github? to explain this in few words, it's the new ssh protocol which is githubs way of allowing you easily authenticate to the github service without supplying your username and password everytime you want to push code to the github cloud
1.ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
copy and paste this code on your command line.
Type
cd .ssh
to gain access to that directory. You will find 3 files inside the directory namely; id_rsa, id_rsa.pub and known_hosts.Type
cat id_rsa.pub
to open and copy the generate keyOnce this code has been copied, navigate to settings->SSH and GPG keys.
Use the green button on the top right to create new ssh key, you will be required to fill in a name, then paste and save the generated key. voila!
Top comments (0)