If unable to connect to FTP, there are many potential causes. This article will cover everything that needs to be checked to resolve the connection issue.
Check the Logs
- SSH into the appropriate server
sudo tail -f /var/log/messages | grep userna5
REPLACE: userna5 with the FTP username being used.
- If using the incorrect username, the above search may not show anything
- Go to inmotionhosting.com/ip and retrieve the IP that is given
- Search using the IP
sudo tail -f /var/log/messages | grep 12.34.56.78
REPLACE: 12.34.56.78 with the IP address.
NOTE: The logs will only show an IPv4 address. You will need to ensure that the IP address being used is an IPv4. If the above link only shows an IPv6 address, Google "What's my IPv4 address."
- If there are no log entries returned, double-check that the hostname and port configured in the FTP client is correct
- Search the logs again
sudo tail -f /var/log/messages | grep 12.34.56.78
REPLACE: 12.34.56.78 with the IP address.
EXAMPLE:Feb 6 14:22:17 vps##### pure-ftpd: (?@173.231.218.25) [INFO] New connection from 173.231.218.25
In this example, the username does not exist. The usernames for FTP are always either the cPanel username or include the domain name, for example, userna5@domain.com. These usernames are also case-sensitive.
Feb 6 14:22:17 vps##### pure-ftpd: (?@173.231.218.25) [INFO] SNI: [domain.com]
Feb 6 14:22:17 vps##### pure-ftpd: (?@173.231.218.25) [INFO] TLS: Enabled TLSv1/SSLv3 with ECDHE-RSA-AES256-GCM-SHA384, 256 secret bits cipher
Feb 6 14:22:25 vps##### pure-ftpd: (?@173.231.218.25) [WARNING] Authentication failed for user [userna5]
Feb 6 14:22:25 vps##### pure-ftpd: (?@173.231.218.25) [INFO] Logout.- Confirm the username exists as an FTP account in cPanel>FTP Accounts
- If so, and the logs indicate an authentication failure, the password being used is invalid
- The password for the FTP account can be reset in cPanel>FTP Accounts
Check DNS
- If using the domain name as the host, ensure it points to our server by running the command
dig +short domain.com
REPLACE: domain.com with the domain. - If using a subdomain such as ftp.domain.com, ensure the subdomain exists and is pointed to our server
dig +short ftp.domain.com
REPLACE: ftp.domain.com with the subdomain being used. - Check that the IP address returned matches the IP address of the server
Check Firewall
NOTE: If unable to load sites, webmail, WHM, or cPanel, the server firewall may be blocking access to the server.
- Go to inmotionhosting.com/ip and retrieve the IP that is given
- Reach out to Support
- Provide Support the IP address and ask that they check to see if it's blocked, and unblock it if so
Comments
0 comments
Article is closed for comments.