What effective user is this script running under? Do they have permission to write to /var/www ?
Net::SSH is just a wrapper around your local ssh command, so could this be an underlying permissions issue?
Maybe Net::SSH::Perl is an option?
Edited to correct links 20101207 @ 13:34 - CBIn reply to Re^3: Net::SSH::Expect login using SSH keys
by cjb
in thread Net::SSH::Expect login using SSH keys
by ashok.g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |