0

I have followed the instructions here Cannot push to git repository on bitbucket

When I run ssh-add -l I receive the correct information, and I have added my public ssh-key to bitbucket.

However, every time I run git clone I receive:

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

Any help?

gmuraleekrishna
  • 3,375
  • 1
  • 27
  • 45
etrey
  • 447
  • 3
  • 6
  • 15

1 Answers1

0

Figured it out, right after I asked it. I did not have the proper write permissions to the director I was in. Therefore I was having to use sudo git.

sudo was not properly setup for ssh, my account was.

After fixing permissions in the folder using chmod and some suggestions from here, I was able to get git to work

etrey
  • 447
  • 3
  • 6
  • 15