yrobink / SBCK

22 stars 9 forks source link

Permission issue with git clone #7

Open dmr-dj opened 8 months ago

dmr-dj commented 8 months ago

I am trying to clone the repository as indicated in the README: git clone --recurse-submodules https://github.com/yrobink/SBCK

However this results in an error:

Cloning into 'SBCK'... remote: Enumerating objects: 1135, done. remote: Counting objects: 100% (125/125), done. remote: Compressing objects: 100% (82/82), done. remote: Total 1135 (delta 66), reused 88 (delta 43), pack-reused 1010 Receiving objects: 100% (1135/1135), 1.11 MiB | 2.67 MiB/s, done. Resolving deltas: 100% (725/725), done. Submodule 'R' (git@github.com:yrobink/SBCK-R.git) registered for path 'R' Submodule 'python' (git@github.com:yrobink/SBCK-python.git) registered for path 'python' Cloning into '/home/roche/SBCK/R'... 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. fatal: clone of 'git@github.com:yrobink/SBCK-R.git' into submodule path '/home/roche/SBCK/R' failed Failed to clone 'R'. Retry scheduled Cloning into '/home/roche/SBCK/python'... 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. fatal: clone of 'git@github.com:yrobink/SBCK-python.git' into submodule path '/home/roche/SBCK/python' failed Failed to clone 'python'. Retry scheduled Cloning into '/home/roche/SBCK/R'... 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. fatal: clone of 'git@github.com:yrobink/SBCK-R.git' into submodule path '/home/roche/SBCK/R' failed Failed to clone 'R' a second time, aborting

Any idea to solve this?

Thanks in advance,

Zeitsperre commented 7 months ago

@dmr-dj

Have you set up your SSH keys properly for GitHub? Since you are trying to clone submodules that are linked here using SSH (i.e. git@github.com:...), you need to have a valid SSH key available in your environment.

For more information: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh