There is a project on Butbucket (private). Until recently, I used Bitbucket almost as a backup copy, connecting from one workplace.

Now I need to add a second computer from which I work. And make the opportunity to push change.

In the second workplace, I generated a pair of open-private key, the open one added in “Settings” - “Deployment Keys”. But it says the following: “Use deployment keys to gain read access to this repository.” That is, I can not push from the second workplace. Git says the following:

> git push conq: repository access denied. access via a deployment key is read-only. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 

On the “Settings” tab - “Access Control” there is only one user who was created when creating the repository, and under which I can work from the first workplace. In the second workplace, I have the same username and email of the user (because I am the same person). But from the second workplace I can not push. Here I found advice:

http://friendfeed.com/bessarabov/619035bd/email?embed=1

To give access to a private repository, you need to specify the person’s email, and not his login on the beatbox.

I decided to make a second entry in the access control, but specify not a login (which is already there), but email. As a result, the bitback shows the error:

 {«error»: {«message»: «'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)», «detail»: " File \«/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/piston/resource.py\», line 208, in __call__\n result = checked_meth(request, *args, **kwargs)\n File \«/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/piston/resource.py\», line 195, in checked_meth\n return meth(*args, **kwargs)\n File \«/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/newrelic-2.18.1.15/newrelic/hooks/component_piston.py\», line 33, in __call__\n return self._nr_wrapped(*args, **kwargs)\n File \«/opt/python/domains/bitbucket.org/2014-05-07/bitbucket/../bitbucket/apps/bb/decorators.py\», line 38, in wrap\n return f(request, *a, **kwa)\n File \«/opt/python/domains/bitbucket.org/2014-05-07/bitbucket/../bitbucket/apps/api/v10/decorators.py\», line 386, in wrapper\n resp.content = str(e)\n", «id»: «b46672c0ff36478e9140bc8bd8a47cbd»}} 

I'm dumb at all. Such a simple action, how to add a second workplace, I can not do. Help plz.

  • 2
    > open added to “Settings” - “Deployment Keys”. Direct text says what it is. Why shove there anything? You account - user - security - ssh keys. The SSH key represents the user (it has nothing to do with a particular turnip!), The rights to turnips are controlled by the beatback itself. Deployment keys are completely different. - etki

1 answer 1

In general, I was looking for settings not there. It turns out that account settings are not in Settings , but separately (click on an avatar, select Управление аккаунтом ). There in the SSH ключи section you need to add a new key. The key in the Settings section - Ключи развертывания must first be deleted, otherwise the system will not allow adding a new key.

But it is necessary to file a bug report. They have the disclosure of the path in plain text, and nobody cares, which is surprising.