当我手动运行这个 Perl 脚本时,它可以建立连接。但是当我实施到系统中时,它会显示:authenticity of the target host can't be established, the remote host public key is probably not present on the '~/.ssh/known_hosts' file
.
我需要这方面的帮助和建议。
my $host = "xxxs.com";
my $sftp = Net::SFTP::Foreign->new($host,user => 'xxx', password => 'xxx',
more => '-v',stderr_fh => $ssherr);