繁体   English   中英

FTPS 连接错误:gnutls_handshake 失败

[英]FTPS connection error: gnutls_handshake failed

我研究了这个问题,但找不到任何指向这个错误的指针。 我基本上是在尝试使用 libcurl 程序连接到服务器。

https://curl.haxx.se/libcurl/c/ftpsget.html

该程序编译正常,但出现如下运行时错误:

Trying (Some IP)...

* Connected to (Some server name) (same ip as above) port 21 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 697 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* gnutls_handshake() failed: An unexpected TLS packet was received.
* Closing connection 0
curl told us 35

我可以通过用户名和密码访问此服务器。

有点老问题,但它可以帮助其他人......

您可能需要使用 --insecure --ftp-ssl --tlsv1 和 ftps:// 但有时 ftp://

希望有帮助!

编辑:URL 附加FTPS 连接错误:gnutls_handshake 失败

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM