Baba Tech Blog

TR EN

Creating Git SSH-Key (Windows & Linux)

This article is older than 2 years. Some information might be outdated.

In this guide for those experiencing problems creating SSH keys while working with Git, we'll cover the SSH key creation process step by step for both Windows and Linux users. 🛠️

Creating SSH-Key for Windows#

  1. Download and install Git Bash application from https://git-scm.com/downloads.
  2. Open the terminal and run the following commands in order:
git config --global user.name "Your User Name"
git config --global user.email "your-email-address.com"
ssh-keygen
  1. After running the commands, press Enter key for all options that appear.
  2. After the key is created, go to C:\Users\yourusername\.ssh directory and open the id_rsa.pub file with Notepad.
  3. Copy the key codes inside the file.
  4. Go to GitHub SSH Keys Settings page, click the New SSH Key button, paste the codes you copied and save.

gitbash

Creating SSH-Key for Linux#

  1. Open Git Bash or terminal and run the following commands:
git config --global user.name "Your User Name"
git config --global user.email "your-email-address.com"
ssh-keygen -t rsa -b 4096 -C "your-email-address.com"
ssh-add ~/.ssh/id_rsa
  1. After running the commands, press Enter key for all options that appear.
  2. After the key is created, copy the content of ~/.ssh/id_rsa.pub file.
  3. Go to GitHub SSH Keys Settings page, click the New SSH Key button, paste the codes you copied and save.

✅ Now you can securely perform operations on GitHub using your SSH key!

With this guide, you can easily complete the SSH key creation process for both Windows and Linux users. 🚀

Webmentions

Likes

  • Loading likes...

Comments & Replies

  • Loading comments...

Comments
Reply via Bluesky

With an account on the Fediverse or Mastodon, you can respond to this post.

Copy and paste this URL into the search field of your favourite Fediverse app or the web interface of your Mastodon server.

Loading comments...