Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-12795

Accessing Private Repositories

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Hi,

      I am trying to add an ssh key for installing private git repositories for my build script. This is a requirement for php composer to access other private packages.

      First problem occured when rsa fingerprint is not added automatically so I added a script command:

      • mkdir ~/.ssh
      • chmod 700 ~/.ssh
      • echo 'bitbucket.org,131.103.20.168 SOMECHARS' > ~/.ssh/known_hosts

      That solved fingerprint problem. After that I tried to added an private key from command line but I need to add it securely. So I tried to add private key via environment variable but env vars removes new lines and that didn't work either.

      • echo $PRIVATE_KEY > ~/.ssh/private_rsa
      • chmod 600 ~/.ssh/private_rsa
      • eval ssh-agent -s
      • ssh-add ~/.ssh/private_rsa

      Is there any way to add a private key or accessing our own private repositories somehow?

      Attachments

        Activity

          People

            Unassigned Unassigned
            0d5c1aa1fdd4 Aykut Aras
            Votes:
            6 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: