‘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.

1 Comment »

  1. Hello,

    I am trying to publish my site on dreamhost using capistrano and I am getting this error message. Host-key-verification-failed. I tried to log into github as you said, but it didn’t work. i have pasted my error below. Any suggestions would be helpful.Linux brazzaville 2.6.29.6-aufs2-grsec-v1.5-x86_64-xeon #13 SMP Mon Oct 5 11:13:18 PDT 2009 x86_64
    | _) | |
    _ \ _|_` |_ /_ / _` |\ \ /| | | -_)
    _.__/_|\__,_|___|___|\__,_| \_/_|_|_|\___|

    Welcome to brazzaville.dreamhost.com

    Any malicious and/or unauthorized activity is strictly forbidden.
    All activity may be logged by DreamHost Web Hosting.

    Last login: Wed Nov 25 06:26:43 2009 from 69.215.28.26
    [brazzaville]$ ssh git@githu.com:coutsuza/motorcity.git
    ssh: Could not resolve hostname githu.com:coutsuza/motorcity.git: Name or service not known
    [brazzaville]$ ssh git@github.com:coutsuza/motorcity.git
    ssh: Could not resolve hostname github.com:coutsuza/motorcity.git: Name or service not known
    [brazzaville]$

    Comment by Suzanne — November 25, 2009 @ 4:50 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

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