Skip to content

lamboley/Net-SSH-Perl-SFTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Net::SSH::Perl::SFTP - Add support of SFTP for Net::SSH::Perl

SYNOPSIS

my $ssh = Net::SSH::Perl::SFTP->new($host, $user, $password);

my ($out, $err, $ex) = $ssh->cmd('id');

$ssh->get('/home/lamboley/toto', 'C:\toto');

($out, $err, $ex) = $ssh->cmd('ls');

if (my $a = $ssh->stat('/home/lamboley/toto2')) {
    $ssh->get('/home/lamboley/toto2', 'C:\toto2', $a);
}

DESCRIPTION

Net::SSH::Perl::SFTP inherit from Net::SSH::Perl and implement SFTP command. Net::SFTP already implement SFTP through Net::SSH::Perl but doesn't allow us to do SSH command, because it is only a SFTP client.

Actually, just the stat and get command are written.

Net::SSH::Perl::SFTP is inspired/based on Net::SFTP.

TODO

  • Implement the other SFTP fonction

AUTHOR

Lucas LAMBOLEY lucaslamboley@outlook.com

COPYRIGHT

Copyright 2019 Lucas LAMBOLEY

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Net::SSH::Perl Net::SFTP

About

Add support for the Secure File Transfer Protocol for Net::SSH::Perl.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages