Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Host verification failed
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lance.Haig  
View profile  
 More options Jan 12, 5:52 pm
From: "Lance.Haig" <lnh...@gmail.com>
Date: Thu, 12 Jan 2012 22:52:09 +0000
Local: Thurs, Jan 12 2012 5:52 pm
Subject: Host verification failed
Hi All,

I was wondering if there was a Capistrano command that will allow you to
accept a host verification key?

I need to do this as part of a deploy.

Thanks

Lance


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lee Hambley  
View profile  
 More options Jan 13, 3:40 am
From: Lee Hambley <lee.hamb...@gmail.com>
Date: Fri, 13 Jan 2012 09:40:55 +0100
Local: Fri, Jan 13 2012 3:40 am
Subject: Re: [capistrano] Host verification failed

No Lance,

Sorry the process is such that if 9/10 times, to prepare the server for a deploy, someone has logged on by hand, and made the changes. What's your use-case? (First time in 5 years this has come up on the mailing list, perhaps I can help?)

- Lee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance.Haig  
View profile  
 More options Jan 13, 10:00 am
From: "Lance.Haig" <lnh...@gmail.com>
Date: Fri, 13 Jan 2012 15:00:38 +0000
Local: Fri, Jan 13 2012 10:00 am
Subject: Re: [capistrano] Host verification failed

Hi lee,

I am writing a cap deploy script for the gitlabhq project and part of
the process is that one of the users it creates needs to be able to
clone a repo from the localhost and as it has not had the host
verification approved this part of the script fails.

if you want to see my code (it is not neat) you can find it here
https://github.com/lhaig/gitlabhq

I hope that makes sense

Thanks for the help.

Lance

On 13/01/12 08:40, Lee Hambley wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Haim Ashkenazi  
View profile  
 More options Jan 13, 11:02 am
From: Haim Ashkenazi <haim.ashken...@gmail.com>
Date: Fri, 13 Jan 2012 18:02:56 +0200
Local: Fri, Jan 13 2012 11:02 am
Subject: Re: [capistrano] Host verification failed

Hi Lance,

Although it's very dangerous practice, if you know what you're doing you
can use ssh options to not check host verification. You can do it in 2
places:

In $HOME/.ssh/config you can put something like this:
Host SOMEHOST
StrictHostKeyChecking no

In Capfile you can set ssh_options[:strict_host_key_checking] to no. I'm
not sure about the name but you can check the Net::SSH API docs. I was able
to something like this (ssh_options[:forward_agent] = true) and it worked
great.

Again, Please consider all options as by setting this you loose a big part
of your ability to tell a machine has been compromised.

A better option might be to use ssh-keyscan to populate your known_hosts
keys, and then clone the repository.

HTH

--
Haim

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Donovan Bray  
View profile  
 More options Jan 13, 10:38 pm
From: Donovan Bray <donno...@gmail.com>
Date: Fri, 13 Jan 2012 19:38:52 -0800
Local: Fri, Jan 13 2012 10:38 pm
Subject: Re: [capistrano] Host verification failed

You can also create a task that appends the known signature to the known hosts file before the task that needs it. This is allows you to actually vet those entries instead of blindly accept them.

On Jan 13, 2012, at 8:02 AM, Haim Ashkenazi <haim.ashken...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance.Haig  
View profile   Translate to Translated (View Original)
 More options Jan 14, 2:15 am
From: "Lance.Haig" <lnh...@gmail.com>
Date: Sat, 14 Jan 2012 07:15:24 +0000
Local: Sat, Jan 14 2012 2:15 am
Subject: Re: [capistrano] Host verification failed

Hi Buddy,

Thanks this is what I wanted. I thin the option in the cap file is the
best as this is a one time deployment and the host key would be
different for each server.

I do not anticipate the script being run more than once to set-up the
server.

Thanks for the help

Lance

On 13/01/12 16:02, Haim Ashkenazi wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance.Haig  
View profile   Translate to Translated (View Original)
 More options Jan 14, 2:18 am
From: "Lance.Haig" <lnh...@gmail.com>
Date: Sat, 14 Jan 2012 07:18:45 +0000
Local: Sat, Jan 14 2012 2:18 am
Subject: Re: [capistrano] Host verification failed

Hey Buddy,

Thanks for the help.

This will only be run once to set-up the account on the local host for a
management account. As this will be run on a new server each time I am
not sure how you would know the host key for it.

Regards

Lance

On 14/01/12 03:38, Donovan Bray wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »