experiences with openssh automation

Franco Saliola saliola-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Aug 9 05:06:47 UTC 2005


On 8/8/05, Mike Kallies <mgjk-cpI+UMyWUv9BDgjK7y7TUQ at public.gmane.org> wrote:

> 1.  Is there a way to programmatically update the host key identifier?
> Kind of a "yes, this is the right server, I know it changed" flag, option
> or technique which I'm missing?

I use the StrictHostKeyChecking option to get around this.

  ssh -o StrictHostKeyChecking=no hostname

Basically, I get the host key with 

  ssh -o StrictHostKeyChecking=no hostname cat /etc/ssh/ssh_host_rsa_key.pub

and add (or replace) the entry in the known_hosts file.

Franco

--
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list