in reply to Re^4: Net::SFTP Problem
in thread Net::SFTP Problem
Are you able to connect from the source to the target machine manually with ssh? ensure that you check it as the same user as the one that runs the script.
Oh, I see what the problem is:
is wrong, you have to write it as%args={port => $portnumber ,host =>$host ,user => $username ,debug => +1};
using (...) instead of {...}%args=(port => $portnumber ,host =>$host ,user => $username ,debug => +1);
BTW, you would have already noticed it if you were using
on your code!!!!!!!!!use strict; use warnings;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Net::SFTP Problem
by Zoop (Acolyte) on Jun 08, 2005 at 03:48 UTC |