Skip to content

Instantly share code, notes, and snippets.

@LishuGupta652
Created October 11, 2023 17:26
Show Gist options
  • 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 "[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