Why does FileZilla ask for password every now and then?
I am downloading thousands of files over FTP using Filezilla. The download takes several hours, so I want to run it overnight, but there is a problem - Filezilla keeps re-asking the password every now and then - almost like every 10 minutes! Why? How to fix this?
I've enabled FileZilla to establish 2 simultaneous FTP connections. It is strange that FileZilla keeps re-asking for password, even if I have set Logontype
to "Ask for password". Snip from the documentation:
Ask for password: FileZilla asks you the password during logon, and it remembers the password during the session.
Interactive: FileZilla asks for the password, and asks again for every new connection to the server.
This means that when I set "Ask for password", it shouldn't ask for every new connection to the server. Yet it does ask again and again...
Site manager settings:
Login settings:
Settings:
The log just after Filezilla re-asks the password (with 1 simultaneous connection only the log looks exactly the same):
Command: PASV
Response: 227 Entering Passive Mode (81,31,47,235,239,66).
Command: RETR P034624.jpg
Response: 150 Opening BINARY mode data connection for P034624.jpg (1242518 bytes)
Response: 226 Transfer complete
Status: File transfer successful, transferred 1 242 518 bytes in 1 second
Status: Starting download of /avif/photos/orig/P034625.jpg
Command: PASV
Error: GnuTLS error -53 in gnutls_record_send: Error in the push function.
Error: Could not write to socket: ECONNABORTED - Connection aborted
Error: Disconnected from server
Error: File transfer failed
Status: Resolving address of ftp.birds.cz
Status: Connecting to 81.31.47.235:21...
Status: Connection established, waiting for welcome message...
Response: 220 iris.fortion.net
Command: AUTH TLS
Response: 234 AUTH TLS successful
Status: Initializing TLS...
Status: Verifying certificate...
Command: USER birds.cz
Status: TLS/SSL connection established.
Response: 331 Password required for birds.cz
Command: PASS
Response: 530 Login incorrect.
Error: Critical error
Error: Could not connect to server
Screenshot of the log right after Filezilla re-asks the password:
If I switch to Active mode, the download works without re-asking the password!!! (Tested with 1 simultaneous connection and Timeout = 0).
But, delete doesn't work - it will break the connection after like 400 deleted files in both active and passive mode, 1 sim. connection, timeout 0. This time it doesn't re-ask the password, it just stops. The log:
Command: DELE P025791.jpg
Response: 250 DELE command successful
Command: DELE P025792.jpg
Response: 250 DELE command successful
Command: DELE P025793.jpg
Error: GnuTLS error -53 in gnutls_record_send: Error in the push function.
Error: Could not write to socket: ECONNABORTED - Connection aborted
Error: Disconnected from server
Conclusion
The above testing was done from my office, Windows 7, behind Zyxel P660HW-T3 FW/modem with more or less default settings. Switching to passive mode has helped here for downloading, for deleting no remedy found. When I tried from home, Windows XP, Filezilla 3.7.3 (current), behind Edimax BR6225N/BR6226N FW/modem, it both downloading and deleting went all OK even with default settings (timeout = 20, 2 sim. connections, passive mode)!!!
Edit: now I tried to delete the files from home, it was OK, then moved with my laptop to office (without closing Filezilla) and suddenly it was also OK! But yesterday from office the deletion stopped after almost 400 files. Interesting! Maybe it depends where I log in first?
I fixed this by going to
Edit > Settings > Interface > Behaviour > "Do not save passwords" [uncheck box]
Interesting. I've never had Filezilla ever re-ask me for a password during a transfer process.
Have you tried to set the Timeout to 0 so that it doesn't close the connection if there is a timeout with server? I would try that and see if that works or not.
Also, what kind of server is it that you are trying to connect into? Is it Windows or Linux?
You might have switch it from Passive to Active mode:
I know I had to do that recently with FTP'ing into a client server.
What I normally do when connecting to a server is use the Quickconnect in the top area:
If I want to save that info, then I copy the connection to the site manager:
If I need to open another connection, then I usually create a new tab and do the process over again.
It also could be a server configuration as well. It might be that the server is configured to only leave any FTP connections open for a limited amount of time.
Another issue could be bandwidth and connection to the server. I might be possible that the connection is timing out and disconnecting, and then on re-connect it needs the password again.
But try setting the Timeout to 0 and see if that works or not.
I'd also recommend looking at your firewall settings as well. From the looks of the log records, it might be from a firewall setting somewhere:
https://forum.filezilla-project.org/viewtopic.php?t=14574