SSH Keys operations in MAC

Shama Ahlawat
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

  1. 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

--

--

Shama Ahlawat
Shama Ahlawat

Written by Shama Ahlawat

I am Software Developer and i am working for startup ecosystem. Fashion is my passion.I want to contribute to the world before I die.

No responses yet