Datei von der Befehlszeile auf ftps hochladen
Ich muss eine einzelne Datei auf FTP auf Port 21 hochladen. Ich habe das benutzt:
curl -T testFtpFile ftps://host -P 21 --user my_user
Bu ich erhalte: Failed to connect to host port 990: Connection refused
Wie kann ich den ftps-Port mit curl angeben?
1
Author: Krzysztof Majewski, 2018-09-06
1 answers
ftps://
ist implizit FTPS (Port 990).
Um explicit FTPS (Port 21) zu verwenden, verwenden Sie --ssl
schalter (oder noch besser --ssl-reqd
um FTPS zu erzwingen):
curl -T testFtpFile --ssl ftp://host --user my_user
Beachten Sie, dass -P
switch schaltet den aktiven/passiven FTP-Verbindungsmodus um. Es gibt keine Portnummer an. Und Sie müssen keine Portnummer explizit angeben, wenn Sie die Standardportnummer (21) verwenden.
3
Author: Martin Prikryl,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2020-11-09 07:42:22
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2020-11-09 07:42:22