# Private submodules, SSH keys and Host key verification failed

**URL:** <https://answers.netlify.com/t/private-submodules-ssh-keys-and-host-key-verification-failed/33696>\
**Category:** Support\
**Tags:** git, deployment\
**Created:** [March 5, 2021, 1:46pm UTC](https://answers.netlify.com/t/private-submodules-ssh-keys-and-host-key-verification-failed/33696 "2021-03-05T13:46:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sobral](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/sobral/32/1622_2.png) [@Sobral](https://answers.netlify.com/u/Sobral)\
**Post date:** [March 5, 2021, 1:46pm UTC](https://answers.netlify.com/t/private-submodules-ssh-keys-and-host-key-verification-failed/33696/1 "2021-03-05T13:46:17Z")

</div>

PLEASE help us help you by writing a good post!

- we need to know your netlify site name. Example: `gifted-antelope-58b104.netlify.app`
- DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
- Build problems? Link or paste the FULL build log & build settings screenshot

The better the post - the faster the answer.

Hi!

I’ve 4 sites which need to access a submodule (also a Netlify site), but it’s impossible.

I added `git submodule update --remote --recursive` to the build command, copied the public key to BitBucket and… Nothing worked. I recreated the public key, which broke the builds, updated the keys in both repositiories and… Still nothing.

What else I need to do?

One of the sites is `vigilant-newton-485906`.

Thank you!

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [March 11, 2021, 9:58pm UTC](https://answers.netlify.com/t/private-submodules-ssh-keys-and-host-key-verification-failed/33696/2 "2021-03-11T21:58:45Z")

</div>

hi there, is this still not working?

these two might be helpful:

> [@\[Support Guide\] Using private NPM modules on Netlify](https://answers.netlify.com/t/support-guide-using-private-npm-modules-on-netlify/795):
>
> Last reviewed by Netlify Support: December 2022 You want to build your site on Netlify but you have some private npm modules served from [npmjs.org](http://npmjs.org), and now you’re wondering how you can access them during build? The most straightforward way to do this is two steps: Find your token inside the ~/.npmrc file in your home folder and set it as an NPM\_TOKEN environment variable through Netlify’s admin UI. This will be on the Build & Deploy settings page of your site configuration, in the section c…

> [@\[Support Guide\] How do I access private repositories in the build environment?](https://answers.netlify.com/t/support-guide-how-do-i-access-private-repositories-in-the-build-environment/723):
>
> Last reviewed by Netlify Support on December 2022 The link from your repository to our service only authenticates us against the “main” repo that you first configured, and won’t automatically allow access to submodules even if they also belong to you and you’ve granted Netlify access to those repositories. In case your submodule is public, you can change the URI schema for it to start with https://, and it should work without further adjustment (so, in .gitmodules, change git@github.com… to h…
