當我手動運行此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
。Perl遠程寫入文件連接錯誤消息Net :: SFTP :: Foreign
我需要幫助和建議。
my $host = "xxxs.com";
my $sftp = Net::SFTP::Foreign->new($host,user => 'xxx', password => 'xxx',
more => '-v',stderr_fh => $ssherr);
如果你可以把其餘的代碼,它可能會幫助更多。 你是什麼意思「實施到系統」? – spydadome