cozy-labs / cozy-desktop

File Synchronisation for Cozy on Desktop and Laptop
https://cozy-labs.github.io/cozy-desktop/
GNU Affero General Public License v3.0
98 stars 45 forks source link

fatal: Could not read from remote repository. #2267

Closed JustinsKittens closed 1 year ago

JustinsKittens commented 1 year ago

Description

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.

Steps to Reproduce

  1. Go to the self build documentation page
  2. Copy 'git clone git@github.com:cozy-labs/cozy-desktop.git'
  3. Paste it into a terminal and press enter

Expected behavior

For the source code to be copied into my file system.

Actual behavior

Error, stating:

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.

Informations

Crash-- commented 1 year ago

Hi @JustinsKittens!

Thanks for reporting this issue. This is an issue with your ssh agent and github. If you want to use git clone git@github.com syntax, you should add your public key to your github account. https://docs.github.com/en/authentication/troubleshooting-ssh/error-permission-denied-publickey#verify-the-public-key-is-attached-to-your-account

If you don't have configured ssh on your github account, can you try to clone overs https with

git clone https://github.com/cozy-labs/cozy-desktop.git
lacthon commented 1 year ago

Can i work on the issue

taratatach commented 1 year ago

Hi @lacthon. The issue lies in @JustinsKittens's Github config so I don't see any way you could help with that. I'm closing the issue.

@JustinsKittens feel free to open a new issue if you believe there is something else.