I am making a private repository on GitHub and within it some submodules, however, when trying to make changes within the submodule the following message appears.
Push Failed
ERROR: Permision to empresa/repositorio.git denied to deploy key
It is worth mentioning that I am using Git Kraken to manage the repositories and I already have added to the "parent" repository, so to speak, a deploy key that I also generated with Git Kraken
The deploy key of git kraken (or the ssh service of your choice) is added directly to the user, so that in all the repositories in which you are a collaborator you can use the same key.
This is done from the user settings