|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi
I need to transfer files (some big db sql dumps, every night) over a secure ftp connection, the ftpd server being on port 22 and using a SSL/TLS encryption mechanism. Are there Perl packages available to handle Net::FTP objects over encrypted connections ? |
|
#2
|
|||
|
|||
|
I realized an automated secure file transfer (running as a cron job every hour) using the SSH SCP (secure copy) command and the perl module Expect. Looked like this:
use Expect; my $prog = '/usr/bin/scp'; my $user = 'someone@localhost'; $scp = Expect->spawn($prog, ("$user:FILE", '/tmp')); (...) Consult the module docs and SSH docs for more information. This is definetely a way to implement secure file transfers using standard tools. |
|
#3
|
|||
|
|||
|
There is a Net::SFTP module that you could try. There is also a Net::SCP module as well. Both are available from CPAN (and probably ASPN, too, if you use windows).
http://search.cpan.org/doc/IVAN/Net-SCP-0.06/SCP.pm http://search.cpan.org/doc/BTROTT/N...lib/Net/SFTP.pm jaa |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Using Net::FTP over a secure ftp connectin |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|