Here are the steps to setup your Mac to work with your Git repo with the same key that you’ve been using on your other development machines.
Copy your id_rsa file into your “.ssh” folder which is a child of your home folder. This folder is hidden but can be easily revealed via this terminal command:
Now that your .ssh folder is open in the finder you can easily drag/drop/copy your pre-existing id_rsa file into it.
Next, check to see if the SSH agent is running:
20207 ?? 0:00.53 /usr/bin/ssh-agent -l // its running
If it is not running:
Check to see what identities have been loaded:
Now load your identity with this command:
Finally, check again for the list of identities – there should be one more than before (or just one if there weren’t any previously).
2048 SHA256:41ZyLeEcsdfwefsdfLegsdftQdm0Ew /Users/my_mac/.ssh/id_rsa (RSA)