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
Had the same problem with TortoiseGit / Windows subsystem for Linux / GitBash. The solution is to use authentication via an agent (key) instead of password.
For TortoiseGit:
(without pageant git clone it asks for password and works as intended, but git update fails with error)
For WS4L:
$ eval `ssh-agent -s`
$ chmod 600 /path/to/key
$ ssh-add /path/to/key
proceed with git submodule update