Skip to content

Instantly share code, notes, and snippets.

@LishuGupta652
Created October 11, 2023 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LishuGupta652/629be54f989c2c2101a8b61d88b86e51 to your computer and use it in GitHub Desktop.
Save LishuGupta652/629be54f989c2c2101a8b61d88b86e51 to your computer and use it in GitHub Desktop.
SSH Gist
ssh-keygen -t rsa -C "your_email@youremail.com"
$ 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 git@github.com 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