当前位置:网站首页>. 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
边栏推荐
- Mysql---- import and export & View & Index & execution plan
- Get the city according to IP
- Postgresql源码(60)事务系统总结
- Stack and queue-p79-9
- Programmers' daily | daily anecdotes
- 剑指offer-高质量的代码
- 使用TCP/IP四层模型进行网络传输的基本流程
- js装饰器@decorator学习笔记
- Stack and queue-p79-10 [2014 unified examination real question]
- ESXI挂载移动(机械)硬盘详细教程
猜你喜欢
.net core 访问不常见的静态文件类型(MIME 类型)
循环肿瘤细胞——Abnova 解决方案来啦
Abnova 体外转录 mRNA工作流程和加帽方法介绍
LVS+Keepalived(DR模式)学习笔记
[noi simulation] regional division (conclusion, structure)
毕业设计游戏商城
Abnova 膜蛋白脂蛋白体技术及类别展示
Big coffee gathering | nextarch foundation cloud development meetup is coming
网络基础 —— 报头、封装和解包
How to install swoole under window
随机推荐
Jetpack Compose 远不止是一个UI框架这么简单~
数据资产管理与数据安全国内外最新趋势
7天零基础能考证HCIA吗?华为认证系统学习路线分享
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书第二阶段答案
算法---比特位计数(Kotlin)
Abnova 体外转录 mRNA工作流程和加帽方法介绍
Matlab tips (30) nonlinear fitting lsqcurefit
ESXI挂载移动(机械)硬盘详细教程
大咖云集|NextArch基金会云开发Meetup来啦
unity3d学习笔记
途家、木鸟、美团……民宿暑期战事将起
BindingException 异常(报错)处理
Get the city according to IP
How can clothing stores make profits?
MATLAB小技巧(30)非线性拟合 lsqcurefit
Stack and queue-p79-10 [2014 unified examination real question]
Jmeter 5.5版本发布说明
CompletableFuture使用详解
Data of all class a scenic spots in China in 2022 (13604)
Kotlin之 Databinding 异常