Hugo Site Deployment Failed due to Host Key Verification

answered
#1

Briefly summarize the issues you have been experiencing.

Hugo deployment issue around theme submodule. Deployment keeps failing due to Host key verification failed.

Please provide a link to your live site hosted on Netlify

Not up yet due to failed deployment.

What have you tried as far as troubleshooting goes? Do you have an idea what is causing the problem?

I have tried making the repo public, doubled checked Netlify github permissions are set appropriately, and repo set up appropriately as well.

Do you have any other information that is relevant, such as links to docs, libraries, or other resources?

#2

As I suggested to a gentleman using Gatsby, I urge you to use GitLab instead Of GitHub. Their integration is right and smooth. I’ve never encountered problems. :+1:t3:

1 Like
#3

What is the content of the .gitmodules file in your projects root directory?

I’m guessing you originally added the submodule for the theme using the ssh/git@github.com method, and for some reason, Netlify hasn’t got the right encryption keys to connect to github via ssh. I reckon you should try using https for the submodule (on your local machine) and then see how netlify goes at downloading the theme.

3 Likes
#4

Hi Dan,

This was exactly the issue. I had the .gitmodule pointing to ssh. Once I changed it to https deploys now.

So many thanks on this, was troubleshooting things for hours.

Best Regards,

PD

1 Like