Why is the host key failing?

778 views
Skip to first unread message

chris

unread,
Apr 8, 2008, 12:40:07 AM4/8/08
to Capistrano
Is it a mismatch between the git server and deployment server? I have
the same public key on the git server and the web server. Is there
something more that I need?

Thanks for the help

==============
cap deploy:cold
* executing `deploy:cold'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
* executing "if [ -d /var/rails/my_app/shared/cached-copy ]; then
cd /var/rails/my_app/shared/cached-copy && git fetch origin && git
reset --hard 045057e63a956c5c1ac5f11e8b1a191763cd5136; else git clone
g...@github.com:my_user_name/my_app.git /var/rails/my_app/shared/cached-
copy && cd /var/rails/my_app/shared/cached-copy && git checkout -b
deploy 045057e63a956c5c1ac5f11e8b1a191763cd5136; fi"
servers: ["liXX-XX.members.linode.com"]
[liXX-XX.members.linode.com] executing command
** [out] Initialized empty Git repository in /var/rails/my_app/shared/
cached-copy/.git/
***********
** [err] Host key verification failed.
***********
** [err] fatal: The remote end hung up unexpectedly
** [err] fetch-pack from 'g...@github.com:my_user_name/my_app.git'
failed.
command finished

Tim Carey-Smith

unread,
Apr 8, 2008, 7:56:24 AM4/8/08
to capis...@googlegroups.com
On 8/04/2008, at 12:40 AM, chris wrote:
> Is it a mismatch between the git server and deployment server? I have
> the same public key on the git server and the web server. Is there
> something more that I need?

Github changed their ssh host-key a while back, I believe.
If you remove the old line from .ssh/known_hosts that is shown when
you do ssh g...@github.com.
That should fix the problem.

You could probably check whether the ssh connection to github is
working by doing the following,
$ cap ROLES=app COMMAND="ssh g...@github.com" invoke

It should return something like:
> I can't do that, my_user_name.

Cheers,
Tim

chris

unread,
Apr 8, 2008, 11:45:01 AM4/8/08
to Capistrano
Thanks Tim,

I should've just ready the instructions (http://github.com/guides/
deploying-with-capistrano) github provides. I was missing a couple
things.

All is good now.
Reply all
Reply to author
Forward
0 new messages