2

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!

2
  • Which files did you copy? id_rsa and id_rsa.pub? Also, are you sure you have the URI right? Commented Mar 6, 2013 at 0:06
  • Yes on the file names and the URI. As I mentioned in my own response below, my issue was solved by letting SSH know the keys existed. Commented Mar 6, 2013 at 3:42

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.