cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: SFTP question from curl newbee

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 24 Jul 2008 12:47:38 -0700

On Thu, Jul 24, 2008 at 02:31:49PM -0500, Brian.Yordy_at_emerson.com wrote:
> I am trying to use curl to upload a file over a secure connection. When I use
> the following command it works:
>
> curl -v -u username -T somefile --ftp-ssl ftp://111.111.11.11/tmp/somefile
>
>
> But when I use the --ftp-ssl-reqd option I get the following:
>
> curl -v -u username -T somefile --ftp-ssl-reqd ftp://111.111.11.11/tmp/somefile
> * Connected to 111.111.11.11 (111.111.11.11) port 21 (#0)
> < 220 hostname FTP server (Revision 1.1 Version wuftpd-2.6.1 Fri Jun 25
> 02:33:48
> GMT 2004) ready.
> > AUTH SSL
> < 534 Kerberos Authentication not enabled.
> > AUTH TLS
> < 534 Kerberos Authentication not enabled.
> * Closing connection #0
> * Requested SSL level failed
>
> curl: (64) Requested SSL level failed
>
> First of all why am I getting this error and why is Kerberos Authentication
> required? I am guessing that this is something simple that I am missing since
> I am new to this.

The first command works because --ftp-ssl is only a suggestion to use SSL;
the server doesn't support it, so the data is sent unencrypted. By adding
the --ftp-ssl-reqd, you turn that into an error case.

It's a server problem; it's not allowing you to use SSL for some reason
that you'll have to ask the administrator about. If you really want SSL,
you could also try implicit SSL (ftps://111.111.11.11/tmp/somefile)
and see if the server supports that.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-24