Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical


by nimdokk (Vicar)
on Nov 22, 2004 at 21:28 UTC ( #409743=perlquestion: print w/replies, xml ) Need Help??

nimdokk has asked for the wisdom of the Perl Monks concerning the following question:

We are looking at bringing in a server product to allow FTP over SSL. Most of our clients simply FTP files to us and all is well with the world. Even those who would like to do FTP over SSL/TLS would be able to do so from their end if we have the server (in the works). However, we have some rare cases where we need to push files with FTP over SSL/TLS to partners. What I am wondering is if there are any modules out there that might help with this. This node (and comments) put me on the right track, but as its a year old, I was wondering if there was anything that might have been done since then which might allow me to do FTP over SSL without having to conjure up something. I haven't found anything in CPAN, but wanted to see if anyone else had had a need to do this with Perl. Any thoughts or suggestions might be appreciated.


Replies are listed 'Best First'.
Re: FTP over TLS/SSL
by etcshadow (Priest) on Nov 22, 2004 at 22:12 UTC
    What about just using sftp? It's a standard implementation of ftp over ssl... but not exactly the same thing as just tunneling ftp through a prebuilt ssl socket (in much the same way that ssh is basically rsh over ssl and https is http over ssl). Many (most / all? I wouldn't want to over-state) ssh daemons function as sftp daemons as well, and there are tons of free sftp clients out there with which perl can work.
    ------------ :Wq Not an editor command: Wq
      Sftp is not interoperable with FTP over TLS/SSL (see RFC 2228 FTP Security Extensions). OSes (e.g. IBM z/OS) that use non-ASCII character sets (e.g. EBCDIC) may not have working sftp clients or servers even if they have working SSH clients and servers because of character set translation issues.
      From everything I've read in the Net::SFTP is built on top of Net::SSH. Which from what my architect tells me is not the same as SSL. I've played with Net::SFTP though I'm not completely happy with it. We are looking at the SSL instead. It should also allow additional download options that SSH would.
        SFTP is built on SSH, which is built on SSL.
        ------------ :Wq Not an editor command: Wq
Re: FTP over TLS/SSL
by tstock (Curate) on Nov 23, 2004 at 06:46 UTC
    lftp will probably do what you need.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2019-11-22 02:34 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (107 votes). Check out past polls.