‘Host key verification failed’ with Capistrano and Git

Published by marco on 2009-10-18

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.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2010 xterm.it | powered by WordPress based on Barecity