July 18th, 2002, 08:53 AM
Using Net::FTP over a secure ftp connectin
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 ?
July 22nd, 2002, 03:43 PM
what about ssh
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:
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.
July 22nd, 2002, 03:51 PM