Hope this is the right section.
Note: I have had to corrupt certain information because as a new user I can only have two links in the message.
I have been given access to a private repository which currently contains one submodule. When I try to clone the repository including the submodules I get errors.
I have tried using Ubuntu 18 and 20 platforms.
$ git clone --recurse-submodules https ://github.com/…/php-api.git
Cloning into ‘php-api’…
Password… (I put my key in here)
remote: Enumerating objects: 144, done.
remote: Counting objects: 100% (144/144), done.
remote: Compressing objects: 100% (72/72), done.
remote: Total 144 (delta 56), reused 143 (delta 55), pack-reused 0
Receiving objects: 100% (144/144), 46.66 KiB | 2.03 MiB/s, done.
Resolving deltas: 100% (56/56), done.
Submodule ‘app/public/home’ (git@githubdotcom:…/home.git) registered for path ‘app/public/home’
Cloning into ‘/home/dave/Projects/test/php-api/app/public/home’…
The authenticity of host ‘githubdotcom (184.108.40.206)’ can’t be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])? y
Please type ‘yes’, ‘no’ or the fingerprint: yes
Warning: Permanently added ‘githubdotcom,220.127.116.11’ (RSA) to the list of known hosts.
git@githubdotcom: Permission denied (publickey).
fatal: Could not read from remote repository.
- I don’t see why the main part of the clone works without problems but when it gets to cloning the submodule suddenly githubdotcom is unknown, but it is the right domain and the RSA key seems to be correct so I accept.
- I am apparently unable to read the submodule. I tried just cloning the submodule, but that says the repository can not be found.
I can visit the repository at githubdotcom and examine the contents just fine.
My Git client version on Ubuntu 20.04 is currently 2.25.1.
Any clues as to what is the problem here?