I have a perl script that securely transfers a file from the machine that is runnign the script to another. I am using the linux scp command. I have secure keys generated on both machines and via command line the scp command works, within the script it doesn't. Here is what the script is doing:
system('/usr/bin/scp -B file othermachine:/otherdirectory/');
Here is what I get in the error log:
Could not create directory '/var/Host key verification failed.
lost connection
Via command line the output is:
dodns.cgi 100% |***************| 2748 00:00
Any ideas?
system('/usr/bin/scp -B file othermachine:/otherdirectory/');
Here is what I get in the error log:
Could not create directory '/var/Host key verification failed.
lost connection
Via command line the output is:
dodns.cgi 100% |***************| 2748 00:00
Any ideas?