DEV Community

Discussion on: Setting up multiple GitHub accounts, the nicer way

Collapse
 
leoaivy93 profile image
leoaivy • Edited

I don't know why but I can't get it done in my case. After using ssh -i ~/.ssh/work_key and then git clone my_repo_url, it still shows errors of no permission. I tried add command clause as well but the result is still the same. Have no clues why it couldn't be done. Could you pls help?

Collapse
 
arnellebalane profile image
Arnelle Balane

Hello! Hmm I can think of a few things you can check to troubleshoot this:

  • Is the work_key's public key to your GitHub account's SSH Keys?
  • Try cloning the repo using the git@... url (not sure if this makes a difference but worth trying hehe)

Please let me know how it goes! :)

Collapse
 
ktxxt profile image
Darko Riđić

I had the same problem as you. I had to restart my Macbook in order for it to work.