Re: Host key problem within a script, please help
From: Richard E Silverman (res_at_qoxp.net)
Date: 06/11/03
- Next message: Richard E Silverman: "Re: install public key on remote host - MIM"
- Previous message: Richard E Silverman: "Re: Can't access server from user console"
- In reply to: Dayton Jones: "Host key problem within a script, please help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Richard E Silverman: "Re: install public key on remote host - MIM"
- Previous message: Richard E Silverman: "Re: Can't access server from user console"
- In reply to: Dayton Jones: "Host key problem within a script, please help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]