The "ssh_init: host does not exist" error in FileZilla occurs when the hostname cannot be resolved to an IP address. This is typically due to:
To bypass DNS issues, you can connect using the server’s IP address instead of the hostname.
If you don’t know your server’s IP address, retrieve it from your hosting provider's control panel or use the command line.
On Windows (Command Prompt):
nslookup yourserver.com
On Linux/macOS (Terminal):
dig yourserver.com +short
or
host yourserver.com
Example Output:
192.168.1.10
Use this IP instead of the hostname in FileZilla.
This is the most direct solution to immediately bypass DNS resolution problems.
yourserver.com, enter 192.168.1.10 (your actual server IP).If the connection succeeds, DNS was the issue. For a permanent fix that lets you use the hostname again, proceed to the next step.
If you prefer to use the hostname, but DNS isn’t resolving, you can manually map it to the correct IP address on your local computer.
sudo nano /etc/hosts
192.168.1.10 yourserver.com
C:\Windows\System32\drivers\etc\hosts
(Select "All Files" in the file type dropdown).
192.168.1.10 yourserver.com
Now, you should be able to use the hostname in FileZilla without issues.
If you updated your hosts file or DNS settings, clear your system's DNS cache to ensure it uses the new information immediately.
Windows:
ipconfig /flushdns
macOS:
sudo killall -HUP mDNSResponder
Linux (systemd-based):
sudo systemd-resolve --flush-caches
After running the command, restart FileZilla and try connecting again.
| Issue | Fix |
|---|---|
| Hostname not resolving (ssh_init: host does not exist) | Use server IP instead of hostname in FileZilla |
| Incorrect FileZilla settings | Change "Host" field to the correct IP address |
| DNS not resolving | Test with nslookup or dig |
| Manually set hostname resolution | Add entry to /etc/hosts or C:\Windows\System32\drivers\etc\hosts |
| Old DNS cache causing issues | Flush DNS with ipconfig /flushdns or systemd-resolve --flush-caches |
By following these steps, FileZilla should connect without the "ssh_init: host does not exist" error!