How to create ssh-rsa key or id_rsa key for first time in git?
Your first time with git and github
- Get a github account.
- Download and install git.
Set up git with your user name and email.
Open a terminal/shell and type:
$ git config --global user.name "Your name here" $ git config --global user.email "your_email@example.com"
- Run this command to create keygen
$ ssh-keygen -t rsa -C "your_email@example.com"
Run this command to print the rsa key and you can copy this key manually
$ cat < ~/.ssh/id_rsa.pub
Paste your ssh public key into your github account settings.
- Go to your github Account Settings
- Click “SSH Keys” on the left.
- Click “Add SSH Key” on the right.
- Add a label (like “My laptop”) and paste the public key into the big text box.
Done
Comments
Post a Comment