cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl ftp-ssl and socks

From: Olivier BLOSSE <oblosse_at_msn.com>
Date: Wed, 4 Nov 2009 15:25:49 +0100

Hello.
 
I'm using curl (cmd line) under RedHat to connect to an ftp-ssl server.
I have to use a proxy socks 5.
 
There is my cmd line :
curl -v -k --ftp-ssl --connect-timeout 10 --max-time 30 -p --socks5 socks_ip:socks_port --cert certificate:password -u user:password ftp://ftp_ip/ -l
 
The connection is OK, but the remote directory listing is blocked on the "NLST" command
 
Here is the connection log :
 
* About to connect() to proxy xx.xx.xx.xx port xxxx
* Trying xx.xx.xx.xx... connected
* Connected to xx.xx.xx.xx (xx.xx.xx.xx) port xxxx
< 220 GIS FTP Server (java -1.1.00) ready.
> AUTH SSL
< 234 Security data exchange complete.
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Request CERT (13):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS handshake, CERT verify (15):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSL connection using RC4-SHA
> USER XXXXXXX
< 331 Password required for XXXXXXX.
> PASS xxxxxx
< 230 User XXXXXXX logged in.
> PBSZ 0
< 200 PBSZ command successful.
> PROT P
< 200 PROT command successful.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> EPSV
* Connect data stream passively
< 502 Command 'EPSV' not implemented.
* disabling EPSV usage
> PASV
< 227 Entering Passive Mode (xx,xx,xx,xx,xx,xx).
* Trying xx.xx.xx.xx... connected
* Connecting to xx.xx.xx.xx (xx.xx.xx.xx) port xxxx
> TYPE A
< 200 Type set to A.
> NLST

* Connection #0 to host xx.xx.xx.xx left intact
* a timeout was reached
curl: (28) a timeout was reached
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

 
Any idea about this ?
 
Thanks.
 
oblosse.

                                               
_________________________________________________________________
Nouveau Windows 7 : Trouvez le PC qui vous convient. En savoir plus.
http://clk.atdmt.com/FRM/go/181574580/direct/01/

-------------------------------------------------------------------
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 2009-11-04