Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

secure ftp using ssl?

by buppy (Initiate)
on Nov 13, 2002 at 07:38 UTC ( #212513=perlquestion: print w/replies, xml ) Need Help??
buppy has asked for the wisdom of the Perl Monks concerning the following question:

I have a client who wants me to come to his 'secure' ftp site. He says that it is an ssl ftp site and I need a special ftp client to do this. The products he has been suggesting are all win2k products. I'd rather do this on my Sun solaris box. My sysadmins are no help. They are don't know of any product that would accomplish this. Is there something in Perl that can do this. I am currently very familiar with Net::FTP. Is there something similar that I can use that will do this secure ssl ftp?

Replies are listed 'Best First'.
Re: secure ftp using ssl?
by lestrrat (Deacon) on Nov 13, 2002 at 07:54 UTC

    The only thing I know that is close to what you are suggesting is "sftp", which is Secure FTP -- and I believe that has nothing to do with ssl, so I may be wrong. There is a Net::SFTP module on CPAN, but I've never used it so I can't comment on the module itself...

Re: secure ftp using ssl?
by Enlil (Parson) on Nov 13, 2002 at 08:29 UTC
    I think what you are looking for is an SSH client which usually comes with an sftp, you can use as previously suggested Net::SFTP module in a script or just get the client from the aforementioned link(s).


Re: secure ftp using ssl?
by jplindstrom (Monsignor) on Nov 13, 2002 at 09:44 UTC
    If you go the Net::SFTP route, know that it's somewhat of a pain to install. But I wrote down the dependency order when I installed it, so this node might help.

    Good luck!


Re: secure ftp using ssl?
by vek (Prior) on Nov 13, 2002 at 13:48 UTC
    Net::SFTP is the way to go here. I'm using it in a project right now in fact. Be aware that while Net::SFTP is easy to install, it's main dependancy Net::SSH::Perl is all kinds of fun to install and has many dependancies. You'd be wise to use to install it.

    Once installed, you'll find the API slightly different if you are used to Net::FTP but you should be up to speed in no time.

    Update: Corrected some evil typos.

    -- vek --
Re: secure ftp using ssl?
by Kanji (Parson) on Nov 13, 2002 at 14:37 UTC

    If you really do mean FTP-SSL/TLS (aka ftps), I don't think there's anything pre-existing on CPAN that will be of help, but you could probably subclass Net::FTP (alt.) to do what you need with the aid of Crypt::SSLeay (alt.) or Net::SSLeay (alt.).

    If that's beyond your current skill set, you might want to try BSDftpd-ssl (which has an ftps client) or lftp.


Re: secure ftp using ssl?
by waswas-fng (Curate) on Nov 13, 2002 at 16:27 UTC
    First off, give us the exact product the customer is using, there are "standard" secure ftpds (sftp, ftps etc) and then there are proprietary ones ("ftpd" that require their own clients and don't really use an open standard). Once you toss that info our way we may be able to give you a little better advice.

      I am currently in the same situation as yourself, but I am the bastard on the windows platform. Chances are that your customer is using ftps. check out this link for more info on ftps and its several different variations... and a handy table chock full of compatible clients for a wide range of platforms:
Re: secure ftp using ssl?
by zentara (Archbishop) on Nov 13, 2002 at 15:05 UTC
    Hi, I havn't utilized the feature yet, but the X11 ftp client "gftp" has an option to use ssh2 to connect. It sounds like that is what you are looking for.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://212513]
Approved by fireartist
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2018-04-20 15:35 GMT
Find Nodes?
    Voting Booth?