Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 ?


Replies are listed 'Best First'.
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 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 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).


      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?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2022-06-26 04:14 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (83 votes). Check out past polls.