I have successfully configured a repo to deploy to a VM via ssh using pipelines. I am now trying to do the same for a second repo.
I have generated ssh keys on the repo, put the public key in authorised keys on the VM and added the host to known hosts on bitbucket.
This worked fine on the first repo with pipeline deploys working as expected.
For the second repo, ssh keeps failing with 'host key verification failed'.
I am using the exact same deploy step and the same VM for both repos. I have tried generating new keys and removing and re-adding the host but it hasn't helped.
The only thing I can think of is that maybe using the same known-host on two repo's for the same account is causing some issue?