Yazmin
Yazmin

Reputation: 1194

Using SSH Keys on different Mac

I have GIT and my repos setup on a MacBook Air. I'm trying to clone the repo on my iMac. My understanding was that I needed to copy my key over from the /.ssh folder on the MBA to the same folder iMac.

However, when I try and clone the repo on the iMac, I get the following error:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I've done a little research already and have verified that...

At this point, I am all out of ideas and could really use some advice.

Suggestions?

Thanks!

Upvotes: 2

Views: 722

Answers (1)

Yazmin
Yazmin

Reputation: 1194

Can't believe I found the solution right after I got done posting this, but for those who are copying keys to new machines, you have to let SSH know the keys are there. See this answer for details:

https://stackoverflow.com/a/12100237/337824

Upvotes: 1

Related Questions