permission denied (publickey)

sathyachilumula December 18, 2017

Hi there,

 

I have a issue while I am working on my project, I used to work with my work laptop unfortunately i have a issue with that laptop and I have been replace another laptop. Now when i am trying a command "composer update" its giving me as Permission denied(publickey). Can you please help me with that.  

5 comments

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 18, 2017

Have you generated a new SSH key on the new laptop, and added the public half to your Bitbucket account?

sathyachilumula December 19, 2017

Hi James, Thanks for your response.

Yes I generated a new key in my new laptop by using command "ssh-keygen " and copied to bit bucket ssh security. But I am getting error as 

$ composer update
Loading composer repositories with package information
Failed to update git@bitbucket.org:redbox-digital/ess_m2epro.git, package information from this repository may be outdated


[RuntimeException]
Failed to execute git clone --mirror "git@bitbucket.org:redbox-digital/flagbit_googlewebmastertools.git" "C:/Users/Sathya.Chilumula/AppData/Local/Composer/vcs/git-bitbucket.org-redbox-digital-flagbit-googlewebmastertools.git/"
Cloning into bare repository 'C:/Users/Sathya.Chilumula/AppData/Local/Composer/vcs/git-bitbucket.org-redbox-digital-flagbit-googlewebmastertools.git'...
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.


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]....

 

Can you help me with this please?

sathyachilumula December 20, 2017

I found this error also "ssh: Could not resolve hostname rsa: Name or service not known"

Warning: Permanently added ' (ECDSA) to the list of known hosts.a.com: Permission denied (publickey).

Rob van der Lee May 30, 2018

You might want to check your composer file to check if the repository is the one that belongs to the repo in the error message.

git-bitbucket.org-redbox-digital-flagbit-googlewebmastertools.git

Then there are some sanity checks that you could do, I recommend working these down one-by-one:

  • Check if your ~/.ssh/id_rsa.pub is in your SSH keys on Bitbucket
  • ssh-add ~/.ssh/id_rsa.pub
  • Check if you've got rights on all repo's added to your json file

After this, you should be able to composer install/update.

sathyachilumula December 20, 2017

Yes I generated a new key in my new laptop by using command "ssh-keygen " and copied to bit bucket ssh security. But I am getting error as 

$ composer update
Loading composer repositories with package information
Failed to update git@bitbucket.org:redbox-digital/ess_m2epro.git, package information from this repository may be outdated


[RuntimeException]
Failed to execute git clone --mirror "git@bitbucket.org:redbox-digital/flagbit_googlewebmastertools.git" "C:/Users/Sathya.Chilumula/AppData/Local/Composer/vcs/git-bitbucket.org-redbox-digital-flagbit-googlewebmastertools.git/"
Cloning into bare repository 'C:/Users/Sathya.Chilumula/AppData/Local/Composer/vcs/git-bitbucket.org-redbox-digital-flagbit-googlewebmastertools.git'...
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.


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]....

Paul Parker November 26, 2018

 I also used this command ssh-keygen to generate a new key, I found this Article very impressive while do search for My Laptop Issues with my Error 0xc0000185 , Need more updates which helps me in Solving my Issue.

jd gsdfs October 25, 2021

I used to shun stickers for some time, then I genuinely went all in. The tough case for the laptop is incredible for this (mine is showing its age though this article, may be time for a brand new buy). Otherwise, I'd never be capable of commit to such a lot of...

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events