cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: SFTP question from curl newbee

From: <Brian.Yordy_at_emerson.com>
Date: Thu, 24 Jul 2008 15:42:35 -0500

Dan, Thanks for your response! I think my issue may be related to some
confusion on my part. I am wanting to use curl to transfer a file using
sftp (which I believe is the ssh protocol) not ftps (which is the ssl
protocol). That probably explains the error that I am getting. If I am
way off base please let me know. My next question is how do I use SFTP
from curl or where can I find an example of SFTP using curl? I did not
see a clear example of how to use SFTP in the man pages or in the online
documentation but I am still looking.

Thanks

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Thursday, July 24, 2008 2:48 PM
To: curl-users_at_cool.haxx.se
Subject: Re: SFTP question from curl newbee

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
-------------------------------------------------------------------
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