Bitbucket host key verification issue on Packagist

637 Views Asked by At

I have a public repository on Bitbucket and I would like to submit it to Packagist for composer purpose. However, after entering git url and submitting, The error is showing up:

Uncaught Exception: [RuntimeException] Failed to execute git clone --mirror '[email protected]:xxx/xxx.git' '/home/composer/.composer/cache/vcs/git-bitbucket.org-xxx-xxx.git/' Host key verification failed. fatal: The remote end hung up unexpectedly

How can I solve this issue? Regards.

1

There are 1 best solutions below

2
On

Looks like ssh key was changed. Try to remove you ~/.ssh/known_hosts file (or lines with bitbucket host/ip)