Skip to content
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

Open
kenkendk opened this issue Dec 4, 2024 · 1 comment
Open

Using FtpEncryptionMode.Auto fails on FileZilla Server #1686

kenkendk opened this issue Dec 4, 2024 · 1 comment
Labels

Comments

@kenkendk
Copy link

kenkendk commented Dec 4, 2024

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 and FtpEncryptionMode.Auto, it fails with the error:

Please call Connect() before trying to read the Capabilities!

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:

FTP Session 77777 X.X.X.X [Response] 220-FileZilla Server 1.9.4
FTP Session 77777 X.X.X.X [Response] 220 Please visit https://filezilla-project.org/
FTP Session 77777 X.X.X.X [Command] USER Username
FTP Session 77777 X.X.X.X [Response] 503 Use AUTH first.
FTP Session 77777 X.X.X.X [Command] QUIT
@FanDjango FanDjango added the bug label Dec 6, 2024
@FanDjango
Copy link
Collaborator

I would think that issuing the AUTH command as the first command would be the correct way to probe for TLS support

Yes, I think you are right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants