It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

git@github.com: Permission denied (publickey)

I habe a problem with composer. I can't load a package which breaks my pipeline and have no idea why git can't clone this public repo:

 

+ composer install --optimize-autoloader
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 35 installs, 0 updates, 0 removals
- Installing hari/pw-module (1.0.0): Downloading (connecting...)Downloading (0%)  Failed to download hari/pw-module from dist: Could not authenticate against github.com
Now trying to download from source
- Installing hari/pw-module (1.0.0): Cloning 72baf9e2a6 from cache
- Installing blue-tomato/elasticsearch-feeder (1.2.7): Downloading (connecting...)Downloading (0%)  Failed to download blue-tomato/elasticsearch-feeder from dist: Could not authenticate against github.com
Now trying to download from source
- Installing blue-tomato/elasticsearch-feeder (1.2.7): Cloning 6795e3df5e from cache
- Installing blue-tomato/page-use-id-as-name (1.1.1): Downloading (connecting...)Downloading (0%)  Failed to download blue-tomato/page-use-id-as-name from dist: Could not authenticate against github.com
Now trying to download from source
- Installing blue-tomato/page-use-id-as-name (1.1.1): Cloning e8f0d395d3 from cache
- Installing blue-tomato/process-logstash (1.0.4): Downloading (connecting...)Downloading (0%)  Failed to download blue-tomato/process-logstash from dist: Could not authenticate against github.com
Now trying to download from source
- Installing blue-tomato/process-logstash (1.0.4): Cloning efab139a9f from cache
- Installing wanze/template-engine-factory (v2.0.1): Downloading (connecting...)Downloading (0%)  Failed to download wanze/template-engine-factory from dist: Could not authenticate against github.com
Now trying to download from source
- Installing wanze/template-engine-factory (v2.0.1): Cloning 812879fa0c from cache
- Installing smarty/smarty (v3.1.34): Downloading (connecting...)Downloading (0%)  Failed to download smarty/smarty from dist: Could not authenticate against github.com
Now trying to download from source
- Installing smarty/smarty (v3.1.34): Cloning c9f0de05f4 from cache
- Installing blue-tomato/template-engine-smarty (2.0.0): Downloading (connecting...)Downloading (0%)  Failed to download blue-tomato/template-engine-smarty from dist: Could not authenticate against github.com
Now trying to download from source
- Installing blue-tomato/template-engine-smarty (2.0.0): Cloning a598adabea from cache
- Installing doctrine/inflector (1.3.1): Downloading (connecting...)Downloading (0%)  Failed to download doctrine/inflector from dist: Could not authenticate against github.com
Now trying to download from source
- Installing doctrine/inflector (1.3.1): Cloning ec3a552422 from cache
- Installing guzzlehttp/promises (v1.3.1): Downloading (connecting...)Downloading (0%)  Failed to download guzzlehttp/promises from dist: Could not authenticate against github.com
Now trying to download from source
- Installing guzzlehttp/promises (v1.3.1): Cloning a59da6cf61 from cache
- Installing ralouphie/getallheaders (3.0.3): Downloading (connecting...)Downloading (0%)  Failed to download ralouphie/getallheaders from dist: Could not authenticate against github.com
Now trying to download from source
- Installing ralouphie/getallheaders (3.0.3): Cloning 120b605dfe from cache
- Installing psr/http-message (1.0.1): Downloading (connecting...)Downloading (0%)  Failed to download psr/http-message from dist: Could not authenticate against github.com
Now trying to download from source
- Installing psr/http-message (1.0.1): Cloning f6561bf28d from cache
- Installing guzzlehttp/psr7 (1.6.1): Downloading (connecting...)Downloading (0%)  Failed to download guzzlehttp/psr7 from dist: Could not authenticate against github.com
Now trying to download from source
- Installing guzzlehttp/psr7 (1.6.1): Cloning 239400de7a from cache
- Installing psr/simple-cache (1.0.1): Downloading (connecting...)Downloading (0%)  Failed to download psr/simple-cache from dist: Could not authenticate against github.com
Now trying to download from source
- Installing psr/simple-cache (1.0.1): Cloning 408d5eafb8 from cache
- Installing psr/container (1.0.0): Downloading (connecting...)Downloading (0%)  Failed to download psr/container from dist: Could not authenticate against github.com
Now trying to download from source
- Installing psr/container (1.0.0): Cloning b7ce3b1764 from cache
- Installing illuminate/contracts (v5.8.36): Downloading (connecting...)Downloading (0%)  Failed to download illuminate/contracts from dist: Could not authenticate against github.com
Now trying to download from source
- Installing illuminate/contracts (v5.8.36): Cloning 00fc6afee7 from cache
- Installing jamesgordo/php-csv-parser (1.0.3): Downloading (connecting...)Downloading (0%)  Failed to download jamesgordo/php-csv-parser from dist: Could not authenticate against github.com
Now trying to download from source
- Installing jamesgordo/php-csv-parser (1.0.3): Cloning 4021b82cf6 from cache
- Installing mobiledetect/mobiledetectlib (2.8.34): Downloading (connecting...)Downloading (0%)  Failed to download mobiledetect/mobiledetectlib from dist: Could not authenticate against github.com
Now trying to download from source
- Installing mobiledetect/mobiledetectlib (2.8.34): Cloning 6f8113f57a from cache
- Installing symfony/translation-contracts (v2.0.1): Downloading (connecting...)Downloading (0%)  Failed to download symfony/translation-contracts from dist: Could not authenticate against github.com
Now trying to download from source
- Installing symfony/translation-contracts (v2.0.1): Cloning 8cc682ac45 from cache
- Installing symfony/polyfill-mbstring (v1.15.0): Downloading (connecting...)Downloading (0%)  Failed to download symfony/polyfill-mbstring from dist: Could not authenticate against github.com
Now trying to download from source
- Installing symfony/polyfill-mbstring (v1.15.0): Cloning 81ffd3a9c6 from cache
- Installing symfony/translation (v5.0.6): Downloading (connecting...)Downloading (0%)  Failed to download symfony/translation from dist: Could not authenticate against github.com
Now trying to download from source
- Installing symfony/translation (v5.0.6): Cloning 91855689b5 from cache
- Installing nesbot/carbon (2.32.1): Downloading (connecting...)Downloading (0%)  Failed to download nesbot/carbon from dist: Could not authenticate against github.com
Now trying to download from source
- Installing nesbot/carbon (2.32.1): Cloning ecb525c766 from cache
- Installing paragonie/random_compat (v9.99.99): Downloading (connecting...)Downloading (0%)  Failed to download paragonie/random_compat from dist: Could not authenticate against github.com
Now trying to download from source
- Installing paragonie/random_compat (v9.99.99): Cloning 84b4dfb120 from cache
- Installing mustangostang/spyc (0.6.3): Downloading (connecting...)Downloading (0%)  Failed to download mustangostang/spyc from dist: Could not authenticate against github.com
Now trying to download from source
- Installing mustangostang/spyc (0.6.3): Cloning 4627c838b1


[RuntimeException]
Failed to execute git clone --no-checkout 'git@github.com:mustangostang/spyc.git' '/var/www/html/vendor/mustangostang/spyc' && cd '/var/www/html/vendor/mustangostang/spyc' && git remote add composer 'git@github.com:mustangostang/spyc.git' && git fetch composer && git remote set-url origin 'git@github.com:mustangostang/spyc.git' && git remote set-url composer 'git@github.com:mustangostang/spyc.git'

Cloning into '/var/www/html/vendor/mustangostang/spyc'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

2 answers

1 accepted

I found a workaround, but no very good final solution: https://github.com/mustangostang/spyc/issues/85

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,052 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you