VPS Ubuntu / મફત Ubuntu VPS

મફત Ubuntu VPS બનાવો અને SSHથી જોડાઓ

Eligible Oracle Always Free instance પર public Ubuntu VPS બનાવો અને તમારા કમ્પ્યુટરથી SSH જોડાણ ચકાસો. Account access મંજૂર, capacity ઉપલબ્ધ અને પસંદ કરેલા resources માટે પૂરતી બાકી allowance હોવાની ધારણા છે.

· અપડેટ: · વાંચવાનો અંદાજિત સમય: 6 મિનિટ

માર્ગદર્શિકાના વિભાગો

Account તપાસો અને નાનો instance પસંદ કરો

આ માર્ગમાં home regionમાં AMD VM.Standard.E2.1.Micro, 1 GB RAM અને Ubuntu 24.04 LTS x86 image વપરાય છે. આ નાનું administration environment છે, માપેલી app capacityની ભલામણ નહીં. Consoleમાં ચોક્કસ image અને shapeની free eligibility ખાતરી કરો.

Instance, network અને console connection manage કરવાની permission તથા કમ્પ્યુટર પર OpenSSH જરૂરી છે. Local commands Linux, macOS અથવા WSL shellમાં છે. Signup, capacity અથવા સતત availabilityની ખાતરી નથી; idle instance પાછો લેવાઈ શકે. પહેલાં મફત VPS programs અને trials સરખાવો.

Launch પહેલાં SSH key બનાવો અને સાચવો

આ commands કમ્પ્યુટર પર ચલાવો. Filename પહેલેથી હોય તો overwrite કર્યા વગર બધે બીજું નામ વાપરો. Prompt આવે ત્યારે passphrase આપો.

mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa -b 3072 -f ~/.ssh/oci-ubuntu-free
chmod 600 ~/.ssh/oci-ubuntu-free
cat ~/.ssh/oci-ubuntu-free.pub

Private file સુરક્ષિત રાખો; instance બનાવતાં માત્ર .pub upload કરો. User public key loginની મંજૂરી ઓળખાવે છે. આગળ ચકાસવાની host key તમે કયા server સાથે જોડાઓ છો તે ઓળખાવે છે; બંને જુદી keys છે.

Compartment, region, instance name અને identifiersની inventory રાખો. Ubuntu-free-ssh નામ માત્ર આ નવા experiment માટે છે; OCIમાં name એકલું unique ID ન હોઈ શકે.

Public subnet બનાવો અને SSH મર્યાદિત રાખો

Networkingમાં experiment માટે અલગ VCN બનાવો, જેમ કે 10.20.0.0/16, અને regional public subnet 10.20.1.0/24. હાલના network સાથે જોડવાનું હોય તો overlap ન થતી ranges લો. VCNમાં internet gateway બનાવી enable કરો.

Subnetના route tableમાં destination 0.0.0.0/0 માટે આ gateway target રાખો. Instanceને public IPv4 પણ જોઈએ; route એકલો address આપતો નથી.

Subnet security listમાં stateful ingress ગોઠવો: source CIDR = હાલનો public IPv4 અને /32, protocol TCP, source ports All, destination port 22. Internet પરથી દેખાતો IP વાપરો, private Wi-Fi IP નહીં. જરૂરી default egress અને ICMP rules જાળવો.

આ dedicated listમાંથી world-open SSH rule બદલો. સાંકડો rule બીજા permissive ruleને override કરતો નથી: બધી attached security lists અને NSG તપાસો. આ ઉદાહરણ NSG, NAT gateway અથવા load balancer ઉમેરતું નથી. Workstationનો public IP બદલાય ત્યારે /32 પણ સુધારો.

Eligible Ubuntu instance બનાવો

Home regionમાં Compute, Instances, Create instance ખોલો. Ubuntu-free-ssh નામ અને યોગ્ય compartment પસંદ કરો. Confirm કરતાં પહેલાં આ settings જુઓ:

નાની સ્ક્રીન પર બધા કૉલમ જોવા કોષ્ટકને આડું સરકાવો.

Settingઆ ઉદાહરણની પસંદગી
ImageEligible Canonical Ubuntu 24.04 LTS platform image, x86/amd64
ShapeVM.Standard.E2.1.Micro, AMD, 1 GB RAM
Boot volume50 GB, eligible performance settings અને પૂરતી બાકી allowance
NetworkDedicated public subnet અને public IPv4
SSH keyoci-ubuntu-free.pub public key upload
Extrasવધારાના volumes, paid image software કે optional managed services નહીં

Home regionમાં Oracle boot/block માટે combined 200 GB જણાવે છે. હાલના volumes પણ ગણો. Trial credit કોઈ charge ઢાંકે તો તે ચાલુ free eligibilityનો પુરાવો નથી. અસ્પષ્ટ હોય તો limits અને billing checklist જુઓ.

નીચેનું local text file તરીકે સાચવી Advanced options, Management, Initialization scriptમાં upload કરો. તે cloud-initના console outputમાં public host keys અને fingerprints બતાવે છે; private key નથી.

#cloud-config
ssh:
  emit_keys_to_console: true

Settings review પછી જ create કરો. Eligible capacity ન મળે તો ચૂકવણીવાળો વિકલ્પ ભૂલથી પસંદ કરવાને બદલે અટકો અને ફરી નિર્ણય લો. Running થયા પછી instance OCID, boot-volume OCID અને public IPv4 નોંધો.

OCI console historyમાંથી guest host key ખાતરી કરો

પહેલો SSH prompt સ્વીકારતાં પહેલાં authenticated OCI Consoleમાં આ ચોક્કસ instance ખોલો. OS Management અથવા Resources હેઠળ Console connection ખોલીને Launch Cloud Shell connection પસંદ કરો. Console history capture માટે જરૂરી connection આ રીતે બને છે; account permissions જોઈએ.

Console historyમાં View current history ખોલો અને first-boot output સાચવો અથવા download કરો. Cloud-initનું SSH HOST KEY FINGERPRINTS section શોધો. Guest host keyનો SHA256 fingerprint અને key type નોંધો. Authorized user keysના fingerprints સાથે ગૂંચવો નહીં.

Console connection resource પરનું fingerprint OCIના console endpoint માટે છે, guestના સામાન્ય SSH endpoint માટે નહીં. આગળ guestના boot outputની host-key નોંધ વાપરો. તે ન મળે તો documented console recovery પૂર્ણ કરો; અજમાવ્યા વગરના ssh-keyscan outputને તેનું સ્થાન ન આપો.

કમ્પ્યુટરથી જોડાઓ અને Ubuntu તપાસો

Workstation terminalમાં documentation address 203.0.113.20ને instanceના public IPv4થી બદલો. Promptનો key type અને SHA256 boot record સાથે મળતા હોય ત્યારે જ સ્વીકારો.

ssh -o StrictHostKeyChecking=ask -i ~/.ssh/oci-ubuntu-free ubuntu@203.0.113.20

Ubuntu platform imageનું account ubuntu છે, opc નહીં. Login પછી VPS પર આ read-only checks કરો:

cloud-init status --wait
cat /etc/os-release
dpkg --print-architecture
free -h
df -h /
sudo ss -lntp
sudo iptables -S

Provisioning પૂર્ણ, Ubuntu 24.04, amd64, અપેક્ષિત memory/disk અને listening SSH service તપાસો. Workstationથી સફળ જોડાણ આ public SSH path સાબિત કરે છે; app capacity અથવા HTTP site તૈયાર હોવાનો પુરાવો નથી.

Image firewall બદલ્યા વગર update કરો

Cloud-init સફળ પૂર્ણ થયા પછી package information refresh કરો અને confirmation પહેલાં upgrade વાંચો:

sudo apt update
sudo apt upgrade

જૂનું session ખુલ્લું રાખી બીજું SSH login તપાસો. Updateને reboot જોઈએ તો server હજી disposable હોય ત્યારે કરો અને પાછા જોડાઈ checks ફરી કરો. Rebootથી SSH છૂટવું સામાન્ય છે.

આ OCI Ubuntu image પર UFW install કે enable કરશો નહીં. Persistent firewall અને iSCSIના જરૂરી rules જાળવો. વેબસાઇટ માટે OCI network permissions અને compatible guest rules બંને જોઈએ.

નાની સ્ક્રીન પર બધા કૉલમ જોવા કોષ્ટકને આડું સરકાવો.

નિષ્ફળતાપહેલી તપાસ
SSH timeoutPublic IPv4, gateway route, current /32 અને બધા network rules
Permission denied (publickey)Username ubuntu, પસંદ કરેલી private key અને uploaded public key
Host-key mismatchInstance identity અને trusted boot record; known_hosts અંધાધૂંધ ન કાઢો
Provisioning/package errorsConsole history, cloud-init અને repository connectivity

જોડાણ ન થાય તો ચોક્કસ SSH errorનું નિદાન કરો. કારણ શોધતાં image firewall જાળવો. આગળ HTTPS deploymentમાં provider-specific firewall branch અનુસરો.

Recovery copy રાખો અથવા આ experiment દૂર કરો

VPS પર આધાર રાખતાં પહેલાં application data અને rebuild notes બહાર રાખો અને restore અજમાવો. આ checks administrative access બતાવે છે, production readiness નહીં. Website files હોય તો file backup restore અજમાવો; તે બીજા app dataની recovery planનું સ્થાન લેતું નથી.

કામ પૂરું થાય ત્યારે જરૂરી export લો. નોંધેલા compartmentમાં exact OCIDથી ubuntu-free-ssh instance પસંદ કરીને Terminate કરો. Boot volume defaultથી retained રહે છે; તે ચોક્કસ volumeની જરૂર ન હોય અને export verified હોય ત્યારે જ permanent deletion પસંદ કરો.

Inventory સામે retained volumes, backups, addresses અને console connections તપાસો. Dedicated subnet/gateway બીજું કશું વાપરતું નથી તેની ખાતરી પછી જ દૂર કરો. એક experiment માટે account-wide deletion ન કરો. બાકી resources અને usage ફરી તપાસો.

પ્રશ્નો અને જવાબો

આ public VPS છે કે local Ubuntu VM?

આ provider-hosted VM છે અને public IP છે. SSH જાણીજોઈને workstationના public IP સુધી મર્યાદિત છે. તમારા કમ્પ્યુટરને સતત ચાલુ રાખવાની જરૂર નથી.

Free shape ન મળે તો શું કરવું?

રાહ જુઓ અથવા બીજો documented program તપાસો. બીજી shape, region કે મોટું allocation આપોઆપ eligible નથી. Account approval અથવા capacityની ખાતરી નથી.

દસ્તાવેજો અને સ્રોતો

VPSuntuએ સંબંધિત documentation 25 September 2026એ તપાસ્યું હતું. આ documented procedure છે, provisioned-account test અથવા free-service guarantee નથી. નવો instance લો અને accountમાં લાગુ શરતો ખાતરી કરો.

સંબંધિત માર્ગદર્શિકાઓ

Ubuntu VPS: તમારા કામ માટે યોગ્ય સર્વર

Ubuntu VPS માટે CPU, RAM અને storageનો અંદાજ કાઢો. હોસ્ટિંગની મર્યાદાઓ, Ubuntuની સુસંગતતા અને પહેલી વેબસાઇટ શરૂ કરવાના પગલાં સમજો.

માર્ગદર્શિકા વાંચો →

Linux VPS પસંદગી: કામ, સંસાધનો અને ખર્ચ

એકસરખા workload સાથે Linux VPS પ્લાન સરખાવો. CPU, RAM, disk અને response time માપો; IP, backup અને traffic સહિતનો સંપૂર્ણ ખર્ચ ગણો.

માર્ગદર્શિકા વાંચો →

મફત VPS: કઈ મર્યાદા, કયો ખર્ચ?

Oracle અને Googleના મફત VPS ક્વોટા સરખાવો. Trial credit અને ચાલુ મફત ફાળવણી વચ્ચેનો ભેદ સમજો; disk, IP, traffic અને backupનો ખર્ચ તપાસો.

માર્ગદર્શિકા વાંચો →

Ubuntu VPS પર પહેલી HTTPS વેબસાઇટ શરૂ કરો

નવા Ubuntu 24.04 VPS પર SSH key, અલગ admin, Nginx, DNS અને HTTPS ગોઠવો. Certificate renewal અને reboot પછી વેબસાઇટ ચાલે છે તેની ખાતરી કરો.

માર્ગદર્શિકા વાંચો →