Three quick steps to set up SSH login to GitHub in Windows

Three quick steps to set up SSH login to GitHub in Windows

Below is a brief list of steps to perform to create and use SSH keys in Git Bash and Visual Studio Code or Community.

Generate the SSH key

Open Git Bash and run:

ssh-keygen -t rsa -b 4096 -C "<email>"
ssh-add ~/.ssh/id_rsa

The latter command failed in my case

Add the key to GitHub

Follow the instructions from https://help.github.com/en/articles/adding-a-new-ssh-key-to-your-github-account.

My related project

E-book: How to set up free WordPress platform for IT blogs

Do you want to set up a typical blog but you don’t know how to start, which plugins to use or how to customize the site? I spent a few weeks in total doing that from scratch – from learning the ecosystem to adjusting the platform to my very specific needs. Now I want to share with my experience and make the start easier for you.

Check the repository’s remote

Make sure you use the git protocol in your repository. Either edit the .git/config folder or run the command git branch -v.

Wrong:

[remote "origin"]
   url = https://github.com/<username>/<repo>.git

Correct:

[remote "origin"]
    url = git@github.com:<username>/<repo>.git
0 0 votes
Article Rating

Want more?

Share!

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x