ThomasIS schrieb:
Kann es sein, dass diese Fehlermeldung auch kommt, wenn curl keine Verbindung aufbauen kann.
Ja, das könnte sein. Ist "ftp://www.ftp-site.com", richtig?
ThomasIS schrieb:
Ich konnte zB auch mit FileZilla oder FireFTP keine Verbindung zu dem FTP-Server herstellen.
Versuch mal:
sudo apt-get install lftp
Die "/etc/lftp.conf" ergänzen mit:
set ssl:verify-certificate no
set ssl:check-hostname false
set ftp:ssl-force true
set ftp:ssl-protect-data true
set net:connection-limit 3
set cmd:trace true
set ftp:fix-pasv-address true
set ftp:nop-interval 4
set ftp:passive-mode true
set ftp:prefer-epsv true
set ftp:verify-address true
set ftps:initial-prot "C"
set net:idle 1m
set net:max-retries 3
set net:persist-retries 5
set net:timeout 2m
set net:reconnect-interval-base 30
set net:reconnect-interval-max 600
set net:connection-takeover true
set ftp:use-site-idle true
set ftp:use-abor true
lftp -d -u ftpuser ftps://www.ftp-site.com
oder
lftp -d -u ftpuser ftps://ftp.ftp-site.com
sudo nmap -sS ftp-site.com -p21
EDIT:
Bei meinem ftp-Server funktioniert es auch mit curl. Z. B.:
:~$ curl -v --insecure --user <user> ftps://<xxxxx>:<port>/myuser.sh -o myuser.sh
Enter host password for user '<user>':
* About to connect() to <xxxxx> port <port> (#0)
* Trying 79.###.###.###... % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Server hello (2):
{ [data not shown]
* SSLv3, TLS handshake, CERT (11):
{ [data not shown]
* SSLv3, TLS handshake, Request CERT (13):
{ [data not shown]
* SSLv3, TLS handshake, Server finished (14):
{ [data not shown]
* SSLv3, TLS alert, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Client key exchange (16):
} [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Finished (20):
} [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
{ [data not shown]
* SSLv3, TLS handshake, Finished (20):
{ [data not shown]
* SSL connection using AES256-SHA
* Server certificate:
* subject: C=DE; ST=###; L=####; O=####; OU=####; CN=192.168.###.###; emailAddress=####@####.com
* start date: 2009-02-06 22:10:23 GMT
* expire date: 2009-03-08 22:10:23 GMT
* common name: 192.168.###.### (does not match '<xxxxx>')
* issuer: C=DE; ST=###; L=####; O=####; OU=####; CN=192.168.###.###; emailAddress=####@####.com
* SSL certificate verify result: self signed certificate (18), continuing anyway.
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0< 220-"Your ID has been logged."
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0< 220
> USER <user>
< 331 Please specify the password.
> PASS #######
< 230 Login successful.
> PBSZ 0
< 200 PBSZ set to 0.
> PROT P
< 200 PROT now Private.
> PWD
< 257 "/###/###/###"
* Entry path is '/###/###/###'
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||47629|).
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0connected
* Connecting to 79.###.###.### (79.###.###.###) port xxxxx
> TYPE I
< 200 Switching to Binary mode.
> SIZE myuser.sh
< 213 142
> RETR myuser.sh
< 150 Opening BINARY mode data connection for myuser.sh (142 bytes).
* Doing the SSL/TLS handshake on the data stream
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSL re-using session ID
* SSLv3, TLS handshake, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Server hello (2):
{ [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
{ [data not shown]
* SSLv3, TLS handshake, Finished (20):
{ [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Finished (20):
} [data not shown]
* SSL connection using AES256-SHA
* Server certificate:
* subject: C=DE; ST=###; L=####; O=####; OU=####; CN=192.168.###.###; emailAddress=###@###.com
* start date: 2009-02-06 22:10:23 GMT
* expire date: 2009-03-08 22:10:23 GMT
* common name: 192.168.###.### (does not match '<xxxxx>')
* issuer: C=DE; ST=###; L=####; O=####; OU=####; CN=192.168.###.###; emailAddress=###@###.com
* SSL certificate verify result: self signed certificate (18), continuing anyway.
* Maxdownload = -1
* Getting file with size: 142
{ [data not shown]
* Remembering we are in dir ""
* SSLv3, TLS alert, Client hello (1):
} [data not shown]
< 226 Transfer complete.
100 142 100 142 0 0 26 0 0:00:05 0:00:05 --:--:-- 36
* Connection #0 to host <xxxxx> left intact
> QUIT
< 221 Goodbye.
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
} [data not shown]