Git private dependencies Host key verification failed

I have a private dependence in my package.json like this

“myrepo”: “git+ssh://”

When I run pipeline, I got this error

Directory: /buddy/yyy/xxx
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
info Visit for documentation about this command.

I also added public key to my github account.

Any help!