Re: help with making an sftp connection
Uri Guttman <[email protected]> Mon, 17 Apr 2023 00:50:06 -0400
| Newsgroups | gmane.comp.lang.perl.beginners |
|---|---|
| Organization | Which Clone Am I? |
| Message-ID | <[email protected]> |
On 4/17/23 00:46, Brent Wood via beginners wrote:
> Cheers Jim,
>
> I have already found that resource and tried a few ways to make it
> work, but it always seems to invoke public/private key authentication,
> which is not available on the remote system
>
>
> my perl is:
>
> /my %args = (
> user => '$user',
> password => '$password',
> /
you seem to be quoting the variables which will not use their values.
drop the quotes on all single vars and try it it again/
/
> / ssh_args => {
> user => '$user',
> password => '$password',
> protocol=>'2,1',
> debug => 1,
> }
> );
>
> my $sftp=Net::SFTP->new($server, %args)
> or die "could not open connection to $server\n";/
uri
--
https://uriguttman.blogspot.com/
A Long Strange Trip
A blog about computers, food, my life and silliness.