You can also try using other Perl packages as Net::SSH2 or Net::OpenSSH.
In reply to Re: Problem with Net::SCP::Expect by salva in thread Problem with Net::SCP::Expect by xorl