Have a Bitbucket user on GitHub that can be granted read access so that we can import via SSH (BB-3743)

Issue #3734 closed
Gunnar Guðvarðarson created an issue

When importing a private git repository from a url such as this one: git@github.com:Gunni/example.git Bitbucket just fails saying there is no repository there, and also authenticating is done via a username/password if i use the https link, example: https://Gunni@github.com/Gunni/example.git You should create and use ssh keys for downloading/getting private repositories.

Comments (10)

  1. Dylan Etkin

    Hi Gunnar,

    I am afraid that we can not use ssh to clone repositories from GitHub.

    The issue is that you have registered a public key on GitHub and your private key resides on your local machine. In the case of an import we are doing the cloning on our local machines. We have no access to your private key and you don't want us to.

    Cheers,

    Dylan

  2. Gunnar Guðvarðarson reporter

    no, that's not what i mean.

    I want YOU to create a private key and send ME that key so i can add it OR, create a user on github, add your public key there and let me ADD you as a collaborator for cloning.

  3. Gunnar Guðvarðarson reporter

    i found also something else, you could create throwaway private keys for an import, make the user add it's public part as a "Deploy key" and then use that key:

    http://help.github.com/deploy-keys/

    Remember that each key can only be used on one repository, so the add a user method might be better.

  4. Atlassian Bitbucket

    This issue has been closed due to inactivity. If you continue to see problems, please reopen or create a new issue.

  5. Log in to comment