sharing ssh keys

diary of a codelovingyogi
1 min readAug 29, 2019

--

across different git hosting sites… on the same machine, because I’ve seen problems with this before from others using different keys and it breaks access to the first git hosting site.

Check for existing keys:

ls -al ~/.ssh

Copy an existing ssh key on your machine:

pbcopy < ~/.ssh/id_rsa.pub

Add ssh key to GitHub in Settings section

Clone repository via the Use SSH link in GitHub.

It should look something like:

git@github.com:<your_username>/<repo_name>.git

--

--

diary of a codelovingyogi
diary of a codelovingyogi

Written by diary of a codelovingyogi

quick notes, snippets, bugs, and fixes

No responses yet