当前位置:网站首页>. Net 5 fluentftp connection FTP failure problem: this operation is only allowed using a successfully authenticated context
. Net 5 fluentftp connection FTP failure problem: this operation is only allowed using a successfully authenticated context
2022-07-07 07:00:00 【Pingshan CP3】
background : Used in the test environment FluentFTP Connect FTP That's all right. , There is no connection to the customer
Problem analysis :
1. Look at the error message , It's certification , Checked FTP The account and password are ok
2. Check the customer FTP Server, yes Sery-U Built , It is possible to connect with the client
3. That's the procedural problem , The suspicion is FluentFTP problem , But view FluentFTP, Yes, it supports connection Serv-U Of ; Because I don't want to change too many things in the program , So I started to analyze FluentFTP Use of
4. Check the initialization FTPClient Method , After trying to replace , Invalid ; It is found that the connection is used AutoConnect, It feels like this is bad Auto Yes
to glance at AutoConnect effect :
This makes up a little knowledge ,FTPS Is in FTP On the basis of TLS and SSL The certification , But and based on SSH Of FTP It's different ( namely SFTP). that AutoConnect It should be automatic recognition FTP still FTPS, Then connect . Here it should be considered FTPS, And then connect , At the same time, our connection information is missing for FTPS Credentials for connection authentication , Lead to failure ;
solve : take AutoConnect Change it to Connect Just fine ;
Yan Shen :
Decompile and check AutoConnect Source code :
He is getting multiple FtpProfile, And take the first one to connect ;
see AutoDetect In the method , There is obviously a lot about SSL The operation of , But I'm not sure which operation caused this error
summary : about AutoConnect and Connect Still use it cautiously
边栏推荐
猜你喜欢
学术报告系列(六) - Autonomous Driving on the journey to full autonomy
Leetcode T1165: 日志分析
Mysql---- import and export & View & Index & execution plan
Big coffee gathering | nextarch foundation cloud development meetup is coming
偏执的非合格公司
Linear algebra (1)
企業如何進行數據治理?分享數據治理4個方面的經驗總結
From zero to one, I will teach you to build the "clip search by text" search service (2): 5 minutes to realize the prototype
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书第一阶段答案
企业如何进行数据治理?分享数据治理4个方面的经验总结
随机推荐
7天零基础能考证HCIA吗?华为认证系统学习路线分享
How to share the same storage among multiple kubernetes clusters
Jetpack Compose 远不止是一个UI框架这么简单~
Postgresql源码(59)分析事务ID分配、溢出判断方法
From zero to one, I will teach you to build the "clip search by text" search service (2): 5 minutes to realize the prototype
Abnova 免疫组化服务解决方案
AddressSanitizer 技术初体验
[noi simulation] regional division (conclusion, structure)
MOS tube parameters μ A method of Cox
Please ask a question, flick Oracle CDC, read a table without update operation, and repeatedly read the full amount of data every ten seconds
2022/07/04学习记录
当前发布的SKU(销售规格)信息中包含疑似与宝贝无关的字
Stack and queue-p79-10 [2014 unified examination real question]
Matlab tips (30) nonlinear fitting lsqcurefit
LC 面试题 02.07. 链表相交 & LC142. 环形链表II
What books can greatly improve programming ideas and abilities?
Distributed ID solution
多学科融合
from .onnxruntime_pybind11_state import * # noqa ddddocr运行报错
Can't you really do it when you are 35 years old?