in reply to Re^2: Perl SCP ERROR(Asking to Continue?)
in thread Perl SCP ERROR(Asking to Continue?)

The easiest way is to, in some way, get ssh called with the StrictHostKeyChecking option set to no (see ssh_config(5)).

Though using that option can have a negative impact on the security of the SSH protocol. I usually disregard its usage unless its implications are really understood.