DEV Community

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

Posted on • Edited 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!

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs