curl-users
Re: How to use curl command line to use ftps?
Date: Mon, 4 Sep 2006 13:10:59 -0700
On Mon, Sep 04, 2006 at 08:45:20PM +0100, Keith MacDonald wrote:
> I'm a newcomer to curl, so I hope this isn't a dumb question. What is the
> syntax for using a secure FTP connection?
>
> I couldn't find any examples, so I tried the following command on a Windows
> XP client:
>
> curl -k -v --user name:passwd ftp.host.com:22/
It sounds like you're confusing ftps with sftp. Which is it that your
server is running? curl only supports the former (the latter is a protocol
running over ssh). The syntax depends on the ftps variant supported by
the server. Either
curl --ftp-ssl --user name:passwd ftp://ftp.host.com/
or
curl --user name:passwd ftps://ftp.host.com/
should do it. You shouldn't need to specify the port number unless you have
an unusual server setup.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2006-09-04