-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using FtpEncryptionMode.Auto fails on FileZilla Server #1686
Comments
Yes, I think you are right. |
I have set up FileZilla Server 1.9.4, for IMPLICIT TLS. (See below for EXPLICIT TLS) Using this: await using var client = new AsyncFtpClient("127.0.0.1", "bla", "bla");
client.Config.EncryptionMode = FtpEncryptionMode.Auto;
client.Config.DataConnectionType = FtpDataConnectionType.PASV;
client.Config.DownloadDataType = FtpDataType.Binary;
client.Config.ValidateAnyCertificate = true;
client.Config.Noop = false;
client.Config.NoopInterval = 750;
client.Config.NoopTestConnectivity = false;
client.Config.Navigate = FtpNavigate.SemiAuto;
client.LegacyLogger = FTPLogEvent;
await client.AutoConnect();
await client.Disconnect(); I have successfully connected.
Without some detailed information, such as I have posted here as an example, it isn't really possible to help you.
This is not an error message that is in any way connected to the problem you describe up top. It belongs to another one of the issues you have opened. They are all mixed up. |
And here is the sequence of event with FileZilla set up for EXPLICIT TLS (using the same code above): This is the scenario where the AUTH is explicitly requesting TLS before credentials are passed.
Really hard to say how you managed to produce that log excerpt of yours. |
FTP Server OS: Windows
FTP Server Type: FileZilla 1.9.4 with Explicit TLS
Client Computer OS: Windows
FluentFTP Version: 50.1.0
Framework: .NET 8
When connecting to the server, using
AsyncFtpClient
andFtpEncryptionMode.Auto
, it fails with the error:Changing to
FtpEncryptionMode.Explicit
works fine.Problem seems to be that the FTP server does not allow the initial USER command gives an error 503 that is not recognized by FluentFTP.
Not sure about compatibility with other server, but I would think that issuing the AUTH command as the first command would be the correct way to probe for TLS support.
Server Logs :
When using the Auto setting, this is the server interaction:
The text was updated successfully, but these errors were encountered: