in reply to Net::SFTP using ssh_args woes
"a reference fto a list of named arguments" is a reference to a hash.
Example:
my %ssh_options = ( StrictHostKeyChecking => "no" ); my %args = ( username => $user, password => $pass, debug => 1, ssh_args => (options => \%ssh_options) ); my $sftp = Net::SFTP->new($host, %args)
Normally you should be able to fold this in, as so:
my %args = ( username => $user, password => $pass, debug => 1, ssh_args => (options => { StrictHostKeyChecking => "no"} ) );
Hope that helps...
/oliver/
Update: added my before %ssh_options.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SFTP using ssh_args woes
by b10m (Vicar) on Jan 09, 2004 at 22:38 UTC | |
by ysth (Canon) on Jan 11, 2004 at 05:55 UTC | |
by b10m (Vicar) on Jan 11, 2004 at 15:07 UTC |