‘Host key verification failed’ with Capistrano and Git
The other day I started getting ‘Host Key verification’ failed error when trying to deploy an application with Capistrano hosted on a Git repository accessed via SSH. At first the problem was a bit scary, but after a bit of thinking I figured out that the solution to the problem was quite simple.
What I had to do was:
1) ssh to the machine where I wanted to deploy the application to
2) ssh to the git repo machine and accept the key
Done.



