Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

FTP over SSL or PPTP

by tstock (Curate)
on Aug 26, 2002 at 16:22 UTC ( #192925=perlquestion: print w/ replies, xml ) Need Help??
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

Comment on FTP over SSL or PPTP
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

Re: FTP over SSL or PPTP
by waswas-fng (Curate) on Aug 26, 2002 at 16:47 UTC
Re: FTP over SSL or PPTP
by snafu (Chaplain) on Aug 26, 2002 at 17:19 UTC
    How feasible would it be to use an ssh tunnel?

    _ _ _ _ _ _ _ _ _ _
    - Jim
    Insert clever comment here...

      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) :-)
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://192925]
Approved by Aristotle
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-09-17 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (60 votes), past polls