Tutorial · Infrastructure

How to Set Up a Free Oracle Cloud VM for Web Development

Cloud

Unlike AWS, GCP, or Azure, Oracle Cloud gives you a true "Always Free" VM — no 1-year expiry, generous specs, and enough power to run a dev playground, host lightweight apps, or deploy a small business site. This guide walks registration through connecting and opening ports.

What you’ll learn
  • How to register a free Oracle Cloud account and pick an Always-Free Ampere shape.
  • How to connect via SSH and open 80/443 on both OS firewall and cloud security list.
  • How to persist firewall rules and get the most from the free VM.
Posted September 2026 · Reference: HackerNoon 2025 guide

Table of contents

  1. Register an Oracle Cloud (OCI) account
  2. Create an instance and choose the free Ampere shape
  3. Configure OS, SSH key, and storage
  4. Launch the instance
  5. Connect over SSH
  6. Open ports 80 and 443
  7. Get the most out of your free VM

1. Register an OCI account

Go to the Oracle Cloud website and click Sign Up.

Oracle requires a valid card for identity verification. You will not be charged while you stay inside the Always Free tier.

⚠ Oracle may change free-tier policy at any time. Confirm current Always Free terms before you rely on it for production.

2. Create an instance and pick the free shape

In the Cloud Portal, open Instances → Create Instance.

3. Configure OS, SSH key, and storage

Operating system

Choose an OS image such as Oracle Linux or Ubuntu. Ubuntu is a common choice for web development.

SSH access

Upload your public key (.pub) so you can log in securely. If you do not have a key pair yet, generate one:

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Then upload the contents of ~/.ssh/id_rsa.pub in the instance setup screen.

Storage

Oracle includes 200GB in the free tier. Set a custom boot volume size of 200GB to avoid running out of space later.

4. Launch the instance

Review all settings, then click Create. The instance appears in your instance list. Wait until its state changes to Running before you connect.

5. Connect over SSH

From the Cloud Portal, copy the instance's public IP address, then connect from your terminal:

ssh ubuntu@<server-public-ip>

If you chose Oracle Linux, replace ubuntu with opc. Confirm the host key when prompted.

💡 You can log in from any machine that holds your private key — an easy way to keep one dev environment everywhere.

6. Open ports 80 and 443

For web hosting you must allow HTTP/HTTPS traffic. Two main options:

Option A — ufw (simpler)

sudo ufw allow 443/tcp
sudo ufw allow 80/tcp
sudo ufw enable

Option B — iptables with persistence

sudo apt install iptables-persistent
sudo netfilter-persistent save

You must also open the matching ports in the OCI Console security list (Ingress rules for 80 and 443). Both the OS firewall and the cloud security list must allow the traffic.

7. Get the most out of your free VM

This is the same setup the diyyourdata showcase runs on — a free Oracle Ampere VM, hardened, with a firewall, Nginx, and container services.

Bottom line
an always-free Ampere VM is a genuinely capable dev host once you open 80/443 in both the OS firewall and the cloud security list.
📍 Location Tracking
We use your IP address (country/city only) for analytics. No personal data collected.