SSH Keys operations in MAC
Apr 6, 2021
1) Checking for existing SSH keys
a) Open terminal
b) enter ls -al ~/.ssh
2) Copying a rsa public key to clipboard
pbcopy < ~/.ssh/id_rsa.pub
Generating a new SSH key and adding it to the ssh-agent
- Open terminal
2. ssh-keygen -t rsa
3. Hit the ENTER key to accept the default (no passphrase).
4. pbcopy < ~/.ssh/id_rsa.pub
Multiple SSH Keys settings for different github account
How to Modify your Git config
$ git config user.name "activehacker"
$ git config user.email "jexlab@gmail.com"
Or you can have global git config $ git config — global user.name “jexchan” $ git config — global user.email “jexchan@gmail.com”