I have a private repo which is including an open source repo as a submodule. (I am owner of both)
<span>+ git submodule update --init --recursive</span>
<span>Submodule 'archdef' (<a href="mailto:git@bitbucket.org" rel="noopener nofollow noreferrer" target="_blank">git@bitbucket.org</a>:andytomlin/archdef.git) registered for path 'archdef'</span>
<span>Cloning into '/opt/atlassian/pipelines/agent/build/archdef'...</span>
<span>Warning: Permanently added the RSA host key for IP address '18.205.93.0' to the list of known hosts.</span>
<span><a href="mailto:git@bitbucket.org" rel="noopener nofollow noreferrer" target="_blank">git@bitbucket.org</a>: Permission denied (publickey).</span>
<span>fatal: Could not read from remote repository.</span>
<span>Please make sure you have the correct access rights</span>
<span>and the repository exists.</span>
<span>fatal: clone of 'git@bitbucket.org:andytomlin/archdef.git' into submodule path '/opt/atlassian/pipelines/agent/build/archdef' failed</span>
<span>Failed to clone 'archdef'. Retry scheduled</span>
<span>Cloning into '/opt/atlassian/pipelines/agent/build/archdef'...</span>
<span>Warning: Permanently added the RSA host key for IP address '18.205.93.1' to the list of known hosts.</span>
<span><a href="mailto:git@bitbucket.org" rel="noopener nofollow noreferrer" target="_blank">git@bitbucket.org</a>: Permission denied (publickey).</span>
<span>fatal: Could not read from remote repository.</span>
<span>Please make sure you have the correct access rights</span>
<span>and the repository exists.</span>
<span>fatal: clone of 'git@bitbucket.org:andytomlin/archdef.git' into submodule path '/opt/atlassian/pipelines/agent/build/archdef' failed</span>
<span>Failed to clone 'archdef' a second time, aborting</span>