Re: Host key problem within a script, please help

From: Richard E Silverman (res_at_qoxp.net)
Date: 06/11/03


Date: 11 Jun 2003 13:40:46 -0400


>>>>> "DJ" == Dayton Jones <dayton@gecko.org> writes:

    DJ> I'm writing a perl script using File::Remote and keep getting the
    DJ> following error:

    DJ> Host key verification failed. lost connection

    DJ> when I run my script.

    DJ> If I ssh from command line there is no issue, and if I use `ssh
    DJ> $server $command`; in the script, it works fine too, but using the
    DJ> ssh/scp builtin of the Remote.pm it fails...

This sounds familiar -- I think the Perl package ends up using a different
known_hosts files. Find out which one (tracing it would be easiest) and
correct the problem (possibly an option to File::Remote?), or put your
host key in the global file.

-- 
  Richard Silverman
  res@qoxp.net