Skip to main content
MigrateClouds logoMigrateClouds
DocsFtp

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).

  1. Open Start and search for "Turn Windows features on or off".
  2. Expand Internet Information Services.
  3. Expand FTP Server and check FTP Service.
  4. Click OK and wait for installation.
  5. Open IIS Manager (search for "IIS").
  6. Right-click on "Sites" in the left pane and select Add FTP Site...
  7. Enter a site name and the physical path to your files.
  8. Under "Binding and SSL", leave standard settings (Port 21). Select "No SSL" for standard FTP (or "Require SSL" for FTPS).
  9. Under "Authentication", select Basic.
  10. 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 vsftpd

Step 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 vsftpd

Firewall & Cloud Configuration

AWS EC2 (Security Groups)

Update your Instance Security Group inbound rules:

TypePort RangeSource
Custom TCP20 - 210.0.0.0/0
Custom TCP1024 - 655350.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:

ProtocolPortAction
TCP21Allow
TCP50000-51000Allow

* 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.