FileZilla is a free desktop client that supports SFTP. On Amazon EC2, SFTP lets you drag-and-drop files to a remote Linux home directory without mounting disks.
What does SFTP to EC2 mean?
You authenticate with the same host, username, and private key you would use for SSH. Traffic rides on port 22, so the security group rule that allows PuTTY also allows FileZilla.
When should you use FileZilla?
Use it to upload project trees before deploys such as Node.js on EC2 or React on EC2. Prefer CLI tools like scp or rsync when you automate transfers in scripts.
What you will configure
FileZilla Site Manager with SFTP, your public DNS or Elastic IP, the AMI login name, and a .ppk (or supported .pem) key file.
FTP vs SFTP
Always pick SFTP. Standard Ubuntu and Amazon Linux images expose SSH on 22, not classic FTP on 21.
Same credentials as SSH.
If PuTTY connects with your key and user, FileZilla should too once Site Manager uses SFTP on port 22.
Port 22 must be open.
Your security group needs inbound TCP 22 from your IP. Opening SSH to 0.0.0.0/0 is fine only for short labs.
Next after SFTP works.
Upload your app, then follow Deploy Node.js on EC2 (or Express / React / Next) for process managers and ports.
Reference
Core Concepts
Terms you will use while transferring files:
Concept
Meaning
SFTP
SSH File Transfer Protocol — encrypted file transfer over port 22
Site Manager
FileZilla place to save host, user, and key settings
Host
Public IPv4 or public DNS of the EC2 instance
Key file
Private key (.ppk or supported .pem) matching the instance key pair
ubuntu / ec2-user
Default SSH users for Ubuntu vs Amazon Linux AMIs
TCP 22
Security group inbound port shared by SSH and SFTP
Elastic IP
Stable public IPv4 so Site Manager host does not change after stop/start
Home directory
Usual upload target (for example /home/ubuntu) before sudo moves
Before you start
Prerequisites
Gather these before you open Site Manager:
A running EC2 instance with public IPv4 or DNS (prefer an Elastic IP). Launch one with the EC2 launch guide if needed.
Security group inbound TCP 22 from your current IP. If PuTTY works, FileZilla usually will too.
The private key for the instance (.ppk from PuTTYgen on Windows, or a supported .pem). Convert with PuTTYgen if FileZilla rejects the format.
Correct SSH username: ubuntu for Ubuntu AMIs, ec2-user for many Amazon Linux AMIs (confirm in EC2 Connect).
Amazon EC2
Walkthrough
Examples
Install FileZilla, save an SFTP site, copy host and user from EC2, then connect and transfer files.
Example 1 — Install FileZilla
Download the official FileZilla Client for your OS.
Most SFTP failures are port 22, wrong user, or key format.
timeout
Connection refused or timeout
Confirm the instance is Running, has a public IP/DNS path, and the security group allows inbound TCP 22 from your current public IP (VPNs change this often).
auth
Authentication failed
Username must match the AMI, and the private key must match the key pair on the instance. Convert .pem to .ppk with PuTTYgen if FileZilla rejects the key.
ftp
Protocol set to FTP
FTP uses port 21 and is not enabled by default. Switch Site Manager to SFTP on port 22.
perms
Permission denied on upload
Upload to /home/ubuntu (or your user home), then sudo mv / chown into system paths over SSH.
ip
Host changed after stop/start
Ephemeral public IPv4 changes. Attach an Elastic IP and update Site Manager Host once.
npm
Uploaded laptop node_modules
Native modules can break across OS/CPU. Exclude them and run npm install on EC2.
Remember
Key Takeaways
SFTP on 22: same port, user, and key as SSH.
Host: public DNS, public IPv4, or Elastic IP.
User:ubuntu or ec2-user as shown in EC2 Connect.
Upload to home first: then deploy with Node/Express/React guides.
One line: Site Manager → SFTP + host + AMI user + key file on port 22.
Frequently Asked Questions
Use SFTP (SSH File Transfer Protocol) on port 22 with your EC2 key-based login. Classic FTP on port 21 is not enabled by default on Amazon Linux or Ubuntu images.
For official Ubuntu AMIs the default SSH user is typically ubuntu. For Amazon Linux it is often ec2-user. Confirm in the EC2 Connect panel for your AMI.
Check that the instance is running, has a reachable public IP or DNS name, and that the security group allows inbound TCP 22 from your current address. Corporate VPNs and home IP changes are common causes of sudden failures.
Recent FileZilla builds on some platforms can use OpenSSH-format keys. On Windows, converting the key to .ppk with PuTTYgen is still a reliable path. Always protect private keys and never share them.
Yes. SFTP runs over SSH, so the connection is encrypted and authenticated with your server keys and client credentials.
Upload to your home directory first, then use sudo to move files into system paths such as /var/www, or adjust ownership with chown for app folders you own.