Created
December 24, 2019 05:22
-
-
Save sanjaykrishnan/c39b76090a9b020b6d75c801b3dcf9ac to your computer and use it in GitHub Desktop.
Instructions to add SSH key to repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t rsa -b 4096 -C "your_email_id" | |
ssh-add ~/.ssh/id_rsa | |
copy content in .ssh/id_rsa.pub and paste in "Add SSH Key" option in your profile. | |
cd to your git repository. | |
git remote -v | |
git remote set-url origin <git_ssh_clone_url> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chmod 600 ~/.ssh/id_rsa
this command should be used if error like this occurs