Deploy a cloud server (OCI instance) to run: - Website - Telegram Bot 24/7 without keeping local PC ON
OCI (Oracle Cloud Infrastructure) = Cloud platform by Oracle
Provides: - Virtual servers (instances) - Storage - Networking - Public internet access
Simple:
Local PC ❌ → Limited, needs power
OCI Server ✅ → Always ON, accessible anywhere
Instance = Virtual Machine (VM)
It is: - Remote Linux computer - Ubuntu server - Has CPU, RAM, Storage
Connection flow: Your Laptop → SSH → OCI Instance → Run Project
OCI gives lifetime free resources:
Includes: - 2 ARM instances (Ampere) - Up to 24 GB RAM (shared) - Public IP - Block storage
Rules: - Use VM.Standard.A1.Flex ONLY - Stay within limits - Avoid long idle usage
https://cloud.oracle.com
Menu → Compute → Instances → Create Instance
Name: tutorial-server
Image: Ubuntu 22.04
Shape: VM.Standard.A1.Flex (IMPORTANT)
CPU: 1 core
RAM: 6 GB
Enough for: - Website - Telegram bot - Other things
Select: Generate SSH Key Pair
Download private key (.key)
IMPORTANT: - Do NOT lose it - Required for login
Enable: Assign Public IPv4 ✅
Click: Create
Wait 1–2 minutes
Copy Public IP
Example: 123.45.67.89
Linux / Mac: ssh -i yourkey.key ubuntu@your_ip
Windows (PowerShell): ssh -i yourkey.key ubuntu@your_ip
Welcome to Ubuntu 22.04
Server ready
Error: Permission denied (publickey)
Reason: Wrong SSH key or key permission issue
Solution:
chmod 400 yourkey.key
ssh -i yourkey.key ubuntu@your_ip
Reason: Port 22 blocked in OCI
Solution:
Go to:
Networking → VCN → Subnet → Security List
Add Ingress Rule:
- Port: 22
- Source: 0.0.0.0/0
Reason: Public IP not assigned
Solution: Edit instance → Attach Public IP
Error: Permission denied
Reason: Using wrong user
Solution: Use: ubuntu (for Ubuntu image)
Reason: Port 80/443 blocked
Solution: Open ports: - 80 (HTTP) - 443 (HTTPS)
Reason: Idle or resource misuse
Solution: - Stay within free tier - Restart instance from OCI panel
Local Development → GitHub → OCI Server
↓
Website + Bot 24/7
OCI Instance Created ✔️
Ready for Deployment ✔️