AWS-Assignment7-Instruction
AWS-Assignment7-Instruction
Remark: This method allows you to run a static website on a cloud-based server without
needing external hosting services.
Remark: Ensure you have the .pem key file downloaded; it is required for SSH access.
Step 2: Connect to EC2 Instance Using Bitvise SSH Client
1. Select your running instance and copy the Public IPv4 Address.
2. Download and install Bitvise SSH Client from your browser.
3. Open Bitvise SSH Client and enter:
o Host: Paste the Public IPv4 Address.
o Username: ubuntu
o Initial Authentication Method: Select public key.
4. Click on Client Key Manager → Import.
o Choose the .pem key file downloaded earlier.
o Click Open → Import.
o The key appears as Global 1.
5. Click Login → Accept & Save.
6. Open a New Terminal Console in Bitvise and run the following command to update
packages:
7. sudo apt-get update && sudo apt-get upgrade
o When prompted, type y and press Enter.
nginx -v
Remark: If permission errors occur, re-run the chmod command and try uploading again.
Final Notes
If the website does not load, ensure:
o The NGINX server is installed and running (sudo systemctl status
nginx).
o The firewall settings allow HTTP and HTTPS traffic.
o The file permissions are correctly set for /var/www/html.
The bucket name must be unique across AWS.
For enhanced security, use IAM roles and access policies to restrict access.