【发布时间】:2017-04-29 00:03:20
【问题描述】:
我正在尝试使用命令“curl”从树莓派连接到我的 NAS FTP 服务器。连接使用ssl加密,所以我使用以下命令类型:
curl --ftp-ssl <FTPSERVEUR>:21 --user "<USER>:<PASS>"
不幸的是,我明白了:
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 10 allowed.
220-Local time is now 20:38. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 10 minutes of inactivity.
530 You aren't logged in
500 ?
500 ?
500 ?
500 ?
500 ?
然后没有任何附加内容。 似乎 curl 甚至无法将我的 ID 传输到服务器。你知道发生了什么吗?
提前感谢您的帮助。
【问题讨论】:
-
使用 URL 语法,即
ftp://host/...而不仅仅是 ip:port。 -
好的,谢谢你,现在它正在工作。但我不明白为什么。我们可以想象一个与默认端口不同的 ftp 服务器 21,不是吗?
-
详情见我的回答。
标签: linux ssl curl raspberry-pi ftps