The SSH key is the most important and essential component for connecting with the remote server and cloning the Git repository without a password. This tutorial explains a step-by-step guideline to generate an SSH key in under a minute.
To connect with GitHub or GitLab, you must generate an SSH key on your computer. A pair of keys will be generated, and a public key must be added to the GitLab settings area.
In this tutorial, I will show you how to easily create the SSH key in under a minute.
- Open the Git Bash terminal or iTerm2 application.
- Write the command '
cd ~/.ssh
' - Write the command '
ssh-keygen
' - No need to add any passphrase; you can skip this step.
- Press enter twice to complete the process.
- Write '
cat id_rsa.pub
' to check the public key.
Total 0 Votes
0
0
Pingback: Five Easy Steps to setup a GitLab SSH Key - Premium WordPress Themes and Plugins By xenioushk