Why SSH key is used in Git?

We need a secure way to talk to the Git server (GitHub, GitLab or Bitbucket) when we push and pull code. An SSH key gives this authentication without entering a username and password every time.

  • The communication is encrypted.
  • The private key never leaves your computer, only the public key is shared.
  • You can use a different key for each computer, and remove one key if the computer is lost.

See Git SSH Key to create one.


Learn more about the similar topics:
Tutorials
Git Introduction
Version Control System
Install Git
Git Configuration
Git Workflow
Git SSH Key
Git and GitHub
Exercises & Assignments
Create a Git repository and make your first commit
Interview Questions & Answers
What is Git?
Why SSH key is used in Git?
How to create SSH key and use for GitLab?
What is the difference between Git and GitHub?
What is a repository in Git?