DEV Community

Cover image for Steps to generate github ssh keys for windows
kennethnnah
kennethnnah

Posted on • Updated on

Steps to generate github ssh keys for windows

Image of the errorHave 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.

  1. 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.

  2. Type cat id_rsa.pub to open and copy the generate key

  3. Once this code has been copied, navigate to settings->SSH and GPG keys.

  4. 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)