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 '' into submodule path 'deps/monkey' failed
Edit your .gitmodule file with the https url, for example:

[submodule "deps/monkey"]
	path = deps/monkey
	url =

Credit: Stackoverflow