Git private dependencies Host key verification failed

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

“myrepo”: “git+ssh://git@github.com/myaccount/myrepo.git”

When I run pipeline, I got this error

Directory: /buddy/yyy/xxx
Output:
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 https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I also added public key to my github account.

Any help!