Bitbucket permission denied error

yzolotarev's Avatar

yzolotarev

30 Sep, 2018 08:23 PM

Hello,

I have a few projects with bitbucket and all work fine. I have set up a new identical one and now I get a permission denied error from bitbucket for some reason. Does anyone know how to debug this error? Appveyor clones the other repos just fine, no idea how to solve this one...

This is as far as it gets:

Build started
git clone -q --branch=master git@bitbucket.org:webatomninja/reflexospa.git C:\projects\reflexospa
Warning: Permanently added the RSA host key for IP address '18.205.93.0' to the list of known hosts.
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Command exited with code 128

  1. 1 Posted by yzolotarev on 30 Sep, 2018 08:39 PM

    yzolotarev's Avatar

    Looks like the SSH key was not added to the bitbucket access keys. I tried to create a project a few times but the SSH still doesn't get added. Is it supposed to be done manually now? I don't think I had to do it like that before. No idea how to manage this now.

  2. 2 Posted by yzolotarev on 30 Sep, 2018 08:54 PM

    yzolotarev's Avatar

    I added the public key from appveyor project to SSH access on bitbucker and got connected eventually.

  3. Support Staff 3 Posted by Ilya Finkelshte... on 01 Oct, 2018 01:10 AM

    Ilya Finkelshteyn's Avatar

    Sorry for the inconvenience. Did you notice the message about re-authorizing Bitbucket and use OAuth 2.0. (see pic)? This would solve your issue.

  4. Ilya Finkelshteyn closed this discussion on 01 Oct, 2018 01:10 AM.

  5. Ilya Finkelshteyn re-opened this discussion on 01 Oct, 2018 01:10 AM

  6. Support Staff 4 Posted by Ilya Finkelshte... on 01 Oct, 2018 02:28 AM

    Ilya Finkelshteyn's Avatar

    Thank you for the catch by the way. Though using OAuth 2.0 should help, it appear to be a regression in Bitbucket OAuth 2.0 support deployed yesterday. We will fix it shortly.

  7. Ilya Finkelshteyn closed this discussion on 01 Dec, 2018 09:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac