Git submodule permission denied (publickey)
Issue: git submodule Permission denied (publickey)
git submodule update --init
Cloning into 'deps/monkey'...
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:monkey/monkey' into submodule path 'deps/monkey' failed
Solution
Edit your .gitmodule file with the https url, for example:
[submodule "deps/monkey"]
path = deps/monkey
url = https://github.com/monkey/monkey.git
Credit: Stackoverflow