Ok, thanks for your help so far, this is what I have now:
use strict;
use Net::SFTP;

my $user = 'user1';
my $password = 'password';

my $host = "0.0.0.0";
my $sftp = Net::SFTP->new($host);

$sftp->login($user,$password) or die "Can't connect... $!";

$sftp->put("test.txt");

However when I run it I get this...

Permission denied at /usr/local/share/perl/5.8.4/Net/SFTP.pm line 62

When I look at the module its realted the login for SSH, my guess is that its not getting the user name and password?

Thanks again!
Tim

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to