Created
October 11, 2023 17:26
-
-
Save LishuGupta652/629be54f989c2c2101a8b61d88b86e51 to your computer and use it in GitHub Desktop.
SSH Gist
This file contains 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 -C "[email protected]" | |
$ ssh-add ~/.ssh/id_firstkey | |
$ ssh-add ~/.ssh/id_secondkey | |
$ ssh-add -D | |
$ ssh-add -l | |
# config file | |
``` | |
#Gitman account | |
Host gitman github.com | |
HostName github.com | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/id_gitman_github | |
``` | |
# Notes | |
- Use SSH instead of HTTPS | |
- Use Alias like git@alias instead of [email protected] in above case git@gitman while adding remote | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment