Host key verification failed

Hi, my site name is affectionate-allen-8d8cf0

I having this problem with react build phase in netlify:

8:36:42 PM: Build ready to start
8:36:43 PM: build-image version: ac716c5be7f79fe384a0f3759e8ef612cb821a37 (xenial)
8:36:43 PM: build-image tag: v3.13.0
8:36:43 PM: buildbot version: 72ebfe61ef7a5152002962d9129cc52f5b1bb560
8:36:43 PM: Fetching cached dependencies
8:36:43 PM: Failed to fetch cache, continuing with build
8:36:43 PM: Starting to prepare the repo for build
8:36:44 PM: No cached dependencies found. Cloning fresh repo
8:36:44 PM: git clone https://github.com/gracchiex/exchange-react
8:36:45 PM: Preparing Git Reference refs/heads/master
8:36:45 PM: Parsing package.json dependencies
8:36:46 PM: Starting build script
8:36:46 PM: Installing dependencies
8:36:46 PM: Python version set to 2.7
8:36:47 PM: Downloading and installing node v16.15.1...
8:36:47 PM: Downloading https://nodejs.org/dist/v16.15.1/node-v16.15.1-linux-x64.tar.xz...
8:36:48 PM: Computing checksum with sha256sum
8:36:48 PM: Checksums matched!
8:36:51 PM: Now using node v16.15.1 (npm v8.11.0)
8:36:51 PM: Started restoring cached build plugins
8:36:51 PM: Finished restoring cached build plugins
8:36:51 PM: Attempting ruby version 2.7.2, read from environment
8:36:52 PM: Using ruby version 2.7.2
8:36:52 PM: Using PHP version 5.6
8:36:52 PM: Started restoring cached yarn cache
8:36:52 PM: Finished restoring cached yarn cache
8:36:53 PM: No yarn workspaces detected
8:36:53 PM: Started restoring cached node modules
8:36:53 PM: Finished restoring cached node modules
8:36:53 PM: Installing NPM modules using Yarn version 1.22.10
8:36:53 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
8:36:53 PM: npm WARN config location in the cache, and they are managed by
8:36:53 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
8:36:53 PM: yarn install v1.22.10
8:36:54 PM: [1/4] Resolving packages...
8:36:54 PM: [2/4] Fetching packages...
8:36:55 PM: error Command failed.
8:36:55 PM: Exit code: 128
8:36:55 PM: Command: git
8:36:55 PM: Arguments: ls-remote --tags --heads git@github.com:coinsambacom/exchange-common.git
8:36:55 PM: Directory: /opt/build/repo
8:36:55 PM: Output:
8:36:55 PM: Host key verification failed.
8:36:55 PM: fatal: Could not read from remote repository.
8:36:55 PM: Please make sure you have the correct access rights
8:36:55 PM: and the repository exists.
8:36:55 PM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
8:37:20 PM: Error during Yarn install
8:37:20 PM: Build was terminated: Build script returned non-zero exit code: 1
8:37:20 PM: Creating deploy upload records
8:37:20 PM: Failing build: Failed to build site
8:37:20 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1 (https://ntl.fyi/exit-code-1)
8:37:20 PM: Finished processing build request in 37.11458535s

In package.json the private package is imported as:

"@coinsamba/exchange-common": "ssh://git@github.com:coinsambacom/exchange-common.git#v2.0.6"

I already added the netlify public key in the repository and the error still persists.

hi there, could you paste the full build log please? thanks.

1 Like

done, and put it as I added the private package

no, can you link us to or paste the full build log here, please, as opposed to the abbreviated version above. thanks.

all the log is already in the thread

:wave: @itxtoledo ,

I suggest the following Support Guide should offer some guidance in this instance:

Let us know if that helps.

1 Like

It is unfeasible to commit these keys as they give access to several other repositories in my account for other people who have access to this repository.

This unsolved problem made me leave for a competitor, thank you.