cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Solaris 10 using Curl to connect to FTPES (SSL/TLS Explicit)

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 21 Jan 2011 20:18:48 -0800

On Sat, Jan 22, 2011 at 11:31:41AM +0800, Andy Ee wrote:
> There's no firewall between the server and the FTP server (both are in the
> same network). I tried to troubleshoot using the command that you advised.
>
> bash-3.00# curl -v ftp://username:password@192.168.0.112/sawnet/ccsaw/ -k
> --ftp-ssl-ccc
> * About to connect() to 192.168.0.112 port 21 (#0)
> * Trying 192.168.0.112... connected
> * Connected to 192.168.0.112 (192.168.0.112) port 21 (#0)
> < 220-FTP server ready.
> < 220 This is a private system - No anonymous login
> > USER username
> < 421 Sorry, cleartext sessions are not accepted on this server.
> * Access denied: 421
> * Closing connection #0
> curl: (67) Access denied: 421
>
>
> The TLS/SSL Explicit security is enabled on the FTP Server.

You'll need --ftp-ssl-ccc in addition to the normal options you were using,
presumably --ftp-ssl. Also try --ftp-ssl-control as another test case.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-22