Standard File Transfer Protocol (FTP) connections have by and large been replaced by more secure alternatives such as FTPS and SFTP, but they can still be found in the workflows of many organizations. And FTP servers enable sharing of files between users, making them critical infrastructure for transferring information between departments or partners. files between users, making them critical infrastructure for transferring information between departments or partners.
When these connections fail, the results can be devastating to a business. In addition to the potential losses caused by transfers not being completed in a timely manner, there’s also the added costs involved in troubleshooting the broken connections and playing catchup once they are re-established.
Check the Basics First
In many cases, a problem with an FTP site is as simple as entering the wrong credentials. Users should double-check within the client they use that they have entered their usernames and passwords correctly, with no typos. Beyond the login credentials, users also need to verify:
- Hostname and IP address
- Configured port (standard FTP uses port 21 by default)
- DNS resolution
- Status of the FTP service and whether it is running
- Firewall rules and network routing
- Active or passive mode
- Initial remote directory
- Listing, read, and write permissions
If the test fails and the connectivity issue persists even after carefully verifying the login credentials and other aspects, it’s time to move on to advanced FTP testing.
Run Command Line Prompts to Test FTP Connections
Many systems provide access to a command-line prompt in a terminal window, which gives the user the ability to check FTP connections directly using a simple command. Entering “ftp” provides access to FTP commands on Windows and Linux-based environments. From the FTP prompt, users can enter “open” followed by the FTP server address to test the connection. If the connection is working, the user will be prompted to enter the username and password for access.
Sending a small test file such as a plain text document ensures the connection is functioning as it should. It should be noted, however, that this should only be performed if certain safeguards are already in place. These include using only an authorized testing directory and a small, uniquely named file that contains no sensitive information. After the test file is sent, users should verify the transferred file’s size or checksum, and the file should be deleted upon verification. Write access should never be tested in a production directory without authorization.
Entering the command “dir” tests the data channel and listing permission, but does not confirm upload permission. In addition, the difference between active and passive mode may explain a failed test. In active mode, an FTP server will open a connection back to the client, which may be blocked if there is a firewall established. In passive mode, however, the client initiates the data connection, making the transfer more firewall-friendly. Users should confirm whether the FTP server is in active or passive mode beforeIf not, contacting the system administrator.
Use GoAnywhere MFT for Reliable, Secure Connections
The GoAnywhere MFT platform from Fortra provides easy access to standard FTP connections as well as higher-security options such as SFTP and FTPS. Our secure, managed file transfer solution also provides safeguards to prevent connectivity issues such as auto-retrying for connections, auto-resumed transfers for interrupted binary files, and integrity checks on successful transfers. Connection retries are configurable, meaning users can leave the setting blank to prevent retries. Interrupted transfers of ASCII files are retransmitted from the beginning, and the Append Files element is unable to auto-resume transfers.
To test FTP connections in GoAnywhere, users need to open the “Resources” tab, select “FTP Servers,” create or edit the appropriate resource, verify the credentials and settings, then select “Test” to check the resource connection.
If you’d like to learn more about how our solution can provide your organization with reliable file transfers across multiple protocols, reach out and speak with a member of our team today. We can provide you with a free trial so you can test GoAnywhere MFT for yourself and see what it can do for you.