FTP Server Integration
MigrateClouds allows you to connect to standard FTP (File Transfer Protocol) servers, enabling you to migrate files to and from your web hosting, dedicated servers, or local storage solutions.
Prerequisites
- A working FTP server (publicly accessible or reachable via VPN)
- Valid credentials (Hostname, Port, Username, Password)
- Passive Mode ports opened on your firewall (usually a range like 50000-51000)
Setting up FTP on Windows
The easiest way to set up an FTP server on Windows is using IIS (Internet Information Services).
- Open Start and search for "Turn Windows features on or off".
- Expand Internet Information Services.
- Expand FTP Server and check FTP Service.
- Click OK and wait for installation.
- Open IIS Manager (search for "IIS").
- Right-click on "Sites" in the left pane and select Add FTP Site...
- Enter a site name and the physical path to your files.
- Under "Binding and SSL", leave standard settings (Port 21). Select "No SSL" for standard FTP (or "Require SSL" for FTPS).
- Under "Authentication", select Basic.
- Under "Authorization", select "Specified users" or "All users" and check Read and Write permissions.
Setting up FTP on Linux (vsftpd)
VSFTPD (Very Secure FTP Daemon) is the standard for Linux.
Step 1: Install
sudo apt update && sudo apt install vsftpdStep 2: Configure
Edit /etc/vsftpd.conf:
anonymous_enable=NO(Disable anonymous access)local_enable=YES(Allow local users to log in)write_enable=YES(Allow uploading files)pasv_min_port=40000/pasv_max_port=50000(Passive ports)
Step 3: Restart
sudo systemctl restart vsftpdFirewall & Cloud Configuration
Crucial: Passive Ports
AWS EC2 (Security Groups)
Update your Instance Security Group inbound rules:
| Type | Port Range | Source |
|---|---|---|
| Custom TCP | 20 - 21 | 0.0.0.0/0 |
| Custom TCP | 1024 - 65535 | 0.0.0.0/0 (or Passive Range) |
* Note: Opening all high ports is risky. Ideally, configure your FTP server to use a specific range (e.g., 50000-51000) and open only that range.
Azure VMs (NSG)
Go to Networking > Inbound Port Rules:
| Protocol | Port | Action |
|---|---|---|
| TCP | 21 | Allow |
| TCP | 50000-51000 | Allow |
* Ensure your FTP server configuration matches these ports!
Troubleshooting
Connection Times Out
This is almost always a firewall issue. Check that Port 21 is open AND that the Passive Port range is open on both the server firewall (e.g., `ufw`) and the cloud provider firewall (AWS SG / Azure NSG).
"List Index Out of Range" or Empty Directory
This usually means the Control connection (Port 21) worked, but the Data connection failed. Verify your Passive Mode configuration.