in reply to Re^2: Net::SSH::Expect login using SSH keys
in thread Net::SSH::Expect login using SSH keys

Try setting $ENV{HOME} in the script to a directory where the apache user can write to. Similar problem reported already here permission problem with Net::SSH::Perl

use Perl;
Perl4Everything
  • Comment on Re^3: Net::SSH::Expect login using SSH keys