---
title: "Capistrano deploy ** Host key verification failed"
author: "sitoto"
date: "2012-07-13T20:44:03Z"
tags: []
categories: ["行业应用"]
slug: "capistrano-deploy-host-key-verification-failed"
draft: false
lastmod: "2012-07-13T20:44:03Z"
id: 1592244
url: "https://sitoto.iteye.com/blog/1592244"
---

Known Hosts bug

If you are not using agent forwarding, the first time you deploy may fail due to Capistrano not prompting with this message:

# The authenticity of host 'github.com (207.97.227.239)' can't be established.
# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
# Are you sure you want to continue connecting (yes/no)?

To fix this, ssh into your server as the user you will deploy with, **run ssh git@github.com** and confirm the prompt.





https://help.github.com/articles/deploying-with-capistrano


Capistrano deploy ** Host key verification failed