curl-users
ftp-ssl
Date: Wed, 4 Apr 2007 10:56:14 -0400
I am trying to connect to a secure FTP server and get a listing of
files. It connects on port 21 and passes in login info just fine. But
then when it goes into passive mode another address is passed back that
curl and curl to tries to connect to it. I used the option
-ftp-skip-pasv-ip option to tell it to ignore the new IP address, which
worked. It now reverts back and uses the orig IP ,but then it just
hangs because it needs to switch to port 1024 and I am guessing it is
trying to still use port 21. That is just a guess.
Any ideas would be welcomed!!!
We are using 7.15.1 version of curl.
curl --ftp-ssl -1kvu ID:PSWD ftp://IPADDRESS --ftp-skip-pasv-ip -Q
"PASV"
* About to connect() to IPADDRESS port 21
* Trying IPADDRESS... connected
* Connected to IPADDRESS (IPADDRESS) port 21
< 220 SERVER.COM X2 WS_FTP Server 5.0.5 (3322912813)
> AUTH SSL
< 234 SSL enabled and waiting for negotiation
* found 60 certificates in /opt/TWWfsw/curl715/share/ca-bundle.crt
.....
.....
.....
> USER
< 331 Password required
> PASS
< 230 user logged in
> PBSZ 0
< 200 PBSZ=0
> PROT P
< 200 PRIVATE data channel protection level set
> PWD
< 257 "/users/PHNS" is current directory
* Entry path is '/users/PHNS'
> PASV
< 227 Entering Passive Mode (2NDIPADDRESS,4,0).
> EPSV
* Connect data stream passively
< 500 illegal command
* disabling EPSV usage
> PASV
< 227 Entering Passive Mode (2NDIPADDRESS,4,1).
* Skips 2NDIPADDRESS for data connection, uses IPADDRESS instead
* Trying IPADDRESS... A remote host did not respond within the timeout
period.
* Trying IPADDRESS... A remote host did not respond within the timeout
period.
* couldn't connect to host
* Connection #0 to host IPADDRESS left intact
curl: (7) couldn't connect to host
* Closing connection #0
Segmentation fault(coredump)
Thanks,
Brad Dorr
-----------------------------------------
Disclaimer:
This electronic message, including any attachments, is confidential
and intended solely for use of the intended recipient(s). This
message may contain information that is privileged or otherwise
protected from disclosure by applicable law. Any unauthorized
disclosure, dissemination, use or reproduction is strictly
prohibited. If you have received this message in error, please
delete it and notify the sender immediately.
Received on 2007-04-04