FTP connection failed: how to fix it
Fix FTP login failures, timeouts and ‘failed to retrieve directory listing’ with the right host, username format, encryption and passive mode.
On this page
Does this match what you’re seeing?
- 530 Login authentication failed
- Connection timed out
- Failed to retrieve directory listing
530 Login authentication failed
- Additional FTP accounts log in with the full name:
dev@yourdomain.co.uk. - Your main login uses your DirectAdmin username.
- Reset the FTP account’s password in Account Manager › FTP Management and try again. How to create an FTP account
- Repeated failures can temporarily block your IP; wait before retrying.
Connection timed out
- Host: use your domain or the server address from your welcome email. If the domain was only just connected, use the server address.
- Port: 21 for FTP.
- Network: some networks block FTP. Try mobile data, or switch to SFTP. SFTP connection failed: how to fix it
Failed to retrieve directory listing
Login succeeded, but the data connection failed.
- In FileZilla: Edit → Settings → Connection → FTP → set Passive mode.
- Use Require explicit FTP over TLS rather than plain FTP; some routers mangle unencrypted FTP.
- Try SFTP, which uses a single connection and avoids this entirely.
Certificate prompt on connect
FTP over TLS shows the server’s certificate. Check the details relate to your hosting server and accept.
It connects, but you can’t see your files
The FTP account’s directory may be limited to a folder. Edit it in Account Manager › FTP Management, or connect with your main login.
Common questions
Why won’t my FTP client connect?
Check the port and protocol first: SFTP uses port 26628, not the default 22, and plain FTP uses 21. After that, try switching between active and passive mode, which resolves most remaining connection failures.
Spotted something out of date or unclear? Tell us and we’ll fix it.