TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.24k stars 1.56k forks source link

Unable to connect with Filezilla using ftps #3073

Open Jaaaarne opened 2 years ago

Jaaaarne commented 2 years ago

I'm not sure whether it is an actual issue or if I'm doing something wrong, so please advise.

The problem is, I'm unable to connect with Filezilla using secure connection.

I set up a new site in Filezilla Site Manager using details Amaze shows me. The IP address of the device is correct, as it's the same that is assigned to it by the router. Encryption in FZ is set to "Use explicit FTP over TLS if available". Connection mode is set to default. When connection starts, the FZ log show me the following:

Status: Connection established, waiting for welcome message... Error: Connection timed out after 20 seconds of inactivity Error: Could not connect to server Status: Waiting to retry...

It makes another attempt with same messages, and then disconnects.

If in FZ site settings I select "Require explicit FTP over TLS", I get the same result (or, rather, no result). If I select "Require implicit FTP over TLS", I get a warning that this server does not support renewing TLS session for data transfer and insecure connection is established (it connects via ftp, not ftps, if I understand it correctly).

If I uncheck the "Secure connection" setting in Amaze, everything works fine using ftp and default Filezilla settings.

This happens on two tablets: Huawei Matepad T8 (no Google services) and Lenovo Tab M10. Both run Android 10. Amaze was installed from IzzyOnDroid repo, version 3.6.7.

Thank you in advance.

EmmanuelMess commented 2 years ago

Same error, this is a bug. @TranceLove

DoctorD90 commented 2 years ago

Hello! Im currently using the FTPS built-in function without any issue, anonymous login and custom port. I find out no problems. I try to share a couple of info:

I underline that I use "quick connect" and I haven't setup any profile in FileZilla. I hope this may help.

UPDATE: I created an entry in the site manager of FileZilla and the only option working is: Require Implicit FTP over TLS The Certificate popup appears and once accepted the connection can go on over TLS; I copy the full log:

Status: Connecting to 192.168.1.10:1234... Status: Connection established, initializing TLS... Status: Verifying certificate... Status: TLS connection established, waiting for welcome message... Response: 220 Service ready for new user. Command: USER anonymous Response: 331 Guest login okay, send your complete e-mail address as password. Command: PASS ***** Response: 230 User logged in, proceed. Command: OPTS UTF8 ON Response: 200 Command OPTS okay. Command: PBSZ 0 Response: 200 Command PBSZ okay. Command: PROT P Response: 200 Command PROT okay. Command: OPTS MLST size;modify;type; Response: 200 Command OPTS okay. Status: Logged in Status: Retrieving directory listing... Command: PWD Response: 257 "/" is current directory. Status: Directory listing of "/" successful

Jaaaarne commented 2 years ago

Doesn't work via Quick Connect, either. Custom port doesn't change a thing. Certificate was accepted the first time I tried, it doesn't show it to me anymore. Connection via plain FTP works fine. Filezilla 3.57.0

DoctorD90 commented 2 years ago

@Jaaaarne just to be sure the setup is the same I try to upload screenshots 😃 I underline that sometimes, with other apps, I need to shutdown the Phone Internet connection to be sure the app listen on the WiFi interface. Maybe try to active the WiFi connecting to your wifi network and disable the Phone Internet connection. Below the screenshots. I hope this will help

FileZilla Site Manager image

FileZilla QuickConnect image

Amaze FTP Server image

Jaaaarne commented 2 years ago

@DoctorD90 Thanks, but I know how to handle Filezilla. :) This exact setup, yes. The difference is Filezilla version and maybe the operating system (I'm not sure which one you're running, I'm on Win8.1).

Just for an experiment I removed the trusted certs from Filezilla, so it would show me the certificate again. And right after I accept the certificate, it says that this server does not support renewing TLS session for data transfer, and FZ also asks if I agree to always allow insecure connection for this server. If I agree, insecure connection is established.

This happens on two tablets, one of which is a wifi only model (doesn't have sim card hardware, can't connect to a mobile carrier).

DoctorD90 commented 2 years ago

I did it only to be sure to be on same page :) Glad that you are expert on FileZilla, this will help a lot for the support! Im running on linux. So the only difference is the OS. I havent access to any win8.1 machine, so unfortunately I cant do anything else.