I am not able to clone the submodule existing within my private git repository. I do have access to entire repository,
Have used the below commands but dint work, pleas
I had this issue. In my case, the public key (~/.ssh/id_rsa.pub) wasn't set up on the server properly.
Reference: Git update submodules recursively
# This must be called twice. Once for new and once for existing submodules.
git submodule update --init --recursive
git submodule update --recursive
ssh -vT git@github.com
. Ensure the key you set up is listed there. For more help on permissions issues, follow this guide:
https://help.github.com/articles/error-permission-denied-publickey/.gitmodules
in the project root folder and ensure things look okay. As recommended by @VonC try cloning them in a separate folder.