tstock has asked for the wisdom of the Perl Monks concerning the following question:
An application I wrote using FTP to download data will have to change to use FTP over SSL, implicit encryption, or PPTP to transfer files.
I've never used these protocals before and am looking for pointers/examples/advice on how to change my simple Net::FTP modules to support this. Any help from fellow monks ?
tstock
Re: FTP over SSL or PPTP
by waswas-fng (Curate) on Aug 26, 2002 at 16:47 UTC
|
| [reply] |
Re: FTP over SSL or PPTP
by cybear (Monk) on Aug 26, 2002 at 16:32 UTC
|
For simplicity's sake, I would write a wrapper script around the FTP that you
currently have. Start a PPTP connection first then call your FTP script.
- cybear | [reply] |
Re: FTP over SSL or PPTP
by snafu (Chaplain) on Aug 26, 2002 at 17:19 UTC
|
| [reply] |
|
I have no control over the connection type... This is a service provided to us by a third party. I would much rather scp or FTP over a SSH tunnel but the offer is "PPTP or CuteFTP pro" (meaning FTP over SSL when I inquired a bit more).
tstock
Update: My final solution was to mirror their FTP server using lftp. I wanted a full perl solution but this was not bad. Having said this, there is a spot on CPAN for someone to write Net::FTPS (not to be confused with Net::SFTP) :-)
| [reply] |
Re: FTP over SSL or PPTP
by spartacus9 (Beadle) on Aug 28, 2002 at 03:26 UTC
|
You might consider looking at SCP, which is part of the SSH family. SCP acts like the unix 'cp' command, but runs over an SSH1 or SSH2 connection and allows for copying files locally or to and from remote systems. | [reply] |
|