What you need first
From your AWS EC2 instance:
- Public IP / Public DNS on AWS
- Key Pair (.pem file or .ppk file)
- Ubuntu username (usually
ubuntu)
STEP 1: Convert .pem to .ppk (for FileZilla) if you have .pem file
FileZilla uses .ppk format, not .pem.
- Open PuTTYgen
- Click Load → Select your
.pemfile - Click Save private key
- Save it as:
my-key.ppk
STEP 2: Open FileZilla & Go to Site Manager
- Open FileZilla
- Click:
File → Site Manager → New Site
STEP 3: Configure Your AWS Connection on FileZilla
Enter following details:
Protocol: SFTP — SSH File Transfer Protocol
Host: Your AWS Public IP
Port: 22
Logon Type: Key file
User: ubuntu
Key File: (browse and select .ppk file)
STEP 4: Connected View
After successful connection:
- Left side → Your local PC
- Right side → Your AWS Ubuntu server
FileZilla Connected View
STEP 5: Upload Your Website
Two common locations to upload:
Option A: Apache (default)
Upload files to: /var/www/html
Option B: Nginx
Upload files to: /usr/share/nginx/html
Method:
Drag your website folder from left side to right side.
Drag → my-website-folder
To → /var/www/html
STEP 6: Fix Folder Permissions
If you get permission errors, run this on your linux server:
sudo chown -R ubuntu:www-data /var/www/html
sudo chmod -R 755 /var/www/html
STEP 7: Open Your Website
In browser:
No comments:
Post a Comment