ఉచిత Ubuntu VPS సృష్టించి SSH ద్వారా కనెక్ట్ అవ్వండి
అర్హత గల Oracle Always Free instanceలో Ubuntuతో public VPS సృష్టించి మీ కంప్యూటర్ నుంచి SSH connectionను నిర్ధారించండి. Approved account access, అందుబాటులో capacity, ఎంచుకున్న resourcesకు సరిపడా మిగిలిన allowance ఉందని ఈ విధానం భావిస్తుంది.
VPSuntu · నవీకరణ: · చదవడానికి సుమారు 5 నిమిషాలు
గైడ్లోని విభాగాలు
ఖాతాను తనిఖీ చేసి చిన్న instance ఎంచుకోండి
Account home regionలో ఒక AMD VM.Standard.E2.1.Micro, 1 GB RAM, Ubuntu 24.04 LTS x86 image వాడుతున్నాం. ఇది చిన్న administration environment; measured application capacity కాదు. Consoleలో exact image, shapeకు వర్తించే free eligibility ఉందో చూడండి. Instance, network, console connection permissions, మీ కంప్యూటర్లో OpenSSH అవసరం. Local commands Linux/macOS/WSL shell కోసం.
Signup, capacity, నిరంతర availabilityకి హామీ లేదు; idle instancesను తిరిగి తీసుకోవచ్చు. ముందుగా ఉచిత కార్యక్రమాలు, trials పోల్చండి.
Launchకు ముందే SSH key సృష్టించి భద్రపరచండి
మీ కంప్యూటర్లో commands అమలు చేయండి. అదే పేరు ఉంటే overwrite చేయకుండా మరో పేరు మొత్తం ప్రక్రియలో వాడండి. అడిగినప్పుడు 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.pubPrivate ఫైల్ను భద్రంగా ఉంచండి; instance సృష్టించేటప్పుడు .pub మాత్రమే upload చేయండి. Login key వాడుకరిని గుర్తిస్తుంది; తర్వాత చూసే host key machineను గుర్తిస్తుంది. Inventoryలో compartment, region, instance name, IDs నమోదు చేయండి. ubuntu-free-ssh ఈ కొత్త ప్రయోగానికి నమూనా పేరు; OCIలో పేరు మాత్రమే unique గుర్తింపు కాకపోవచ్చు.
SSHను పరిమితం చేసిన public subnet సిద్ధం చేయండి
ఈ ప్రయోగానికి ప్రత్యేక VCN, ఉదా. 10.20.0.0/16, regional public subnet 10.20.1.0/24 సృష్టించండి. Existing networksతో కలిపితే overlapping ranges వాడవద్దు. VCNలో internet gateway సృష్టించి enable చేయండి. Subnet route tableలో 0.0.0.0/0కు ఆ gateway targetగా ఇవ్వండి. Instanceకు public IPv4 కూడా అవసరం; route ఒక్కటే address ఇవ్వదు.
Subnet security listలో stateful ingress rule పెట్టండి: source మీ current public IPv4/32, TCP, source ports All, destination 22. Private Wi-Fi IP వాడవద్దు. అవసరమైన default egress, ICMP rules కాపాడండి. Dedicated listలో default world-open SSH ruleను మార్చండి. Narrow rule మరో permissive ruleను override చేయదు; అన్ని security lists, NSGs చూడండి. ఈ ఉదాహరణలో NSG, NAT లేదా load balancer లేదు. Workstation public IP మారితే /32 rule మార్చండి.
అర్హత గల Ubuntu instance సృష్టించండి
Home regionలో Compute → Instances → Create instance తెరవండి. ubuntu-free-ssh పేరు, సరైన compartment ఎంచుకోండి.
చిన్న స్క్రీన్లో అన్ని నిలువు వరుసలు చూడటానికి పట్టికను పక్కకు జరపండి.
| Setting | ఈ ఉదాహరణ ఎంపిక |
|---|---|
| Image | Eligible Canonical Ubuntu 24.04 LTS x86/amd64 |
| Shape | VM.Standard.E2.1.Micro, AMD, 1 GB RAM |
| Boot volume | 50 GB; eligible performance, మిగిలిన కోటా తనిఖీ |
| Network | Dedicated public subnet, assigned public IPv4 |
| SSH key | oci-ubuntu-free.pub upload |
| Extras | అదనపు volumes, paid image software, optional managed services లేవు |
Oracle home regionలో boot/block storageకు కలిపి 200 GB పేర్కొంటుంది. Existing volumesనూ లెక్కించండి. ప్రతి resource eligibility, estimate చూడండి; trial credit chargeను దాచడం ongoing free coverageకు ఆధారం కాదు. సందేహముంటే పూర్తి ఖర్చు checklist వాడండి.
క్రింది textను local ఫైల్గా ఉంచి Advanced options → Management → Initialization scriptలో upload చేయండి. తదుపరి తనిఖీ కోసం cloud-init public host keys, fingerprintsను consoleలో చూపిస్తుంది; private key ఇందులో లేదు.
#cloud-config
ssh:
emit_keys_to_console: trueSettings సమీక్షించిన తర్వాతే create చేయండి. Eligible capacity లేకపోతే అనుకోకుండా paid substitute ఎంచుకోవద్దు. Running అయిన తర్వాత instance OCID, boot-volume OCID, public IPv4 నమోదు చేయండి.
Trusted boot recordతో guest host keyను నిర్ధారించండి
Authenticated OCI Consoleలో ఈ exact instance తెరవండి. OS Management లేదా Resourcesలో Console connection → Launch Cloud Shell connection ఎంచుకోండి. Console history captureకు ఈ connection, తగిన permissions అవసరం. Console history → View current historyలో first-boot outputను save/download చేయండి.
Cloud-init రూపొందించిన SSH HOST KEY FINGERPRINTSలో guest host key SHA256, key typeను నమోదు చేయండి. Authorized user key fingerprintsతో కలపవద్దు. Console connection resourceలో చూపే fingerprint OCI console endpointది; సాధారణ guest SSHది కాదు. Guest boot record లేకపోతే documented console recovery వాడండి; unverified ssh-keyscan ఫలితాన్ని ప్రత్యామ్నాయంగా తీసుకోవద్దు.
మీ కంప్యూటర్ నుంచి కనెక్ట్ అయి Ubuntuను చూడండి
Workstation terminalలో 203.0.113.20 బదులు instance public IPv4 ఇవ్వండి. ఇది documentation కోసం reserved address. Prompt key type, SHA256 boot recordతో సరిపోతేనే అంగీకరించండి.
ssh -o StrictHostKeyChecking=ask -i ~/.ssh/oci-ubuntu-free ubuntu@203.0.113.20Ubuntu platform-image username 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 -SProvisioning పూర్తయ్యిందా, Ubuntu 24.04, amd64, ఆశించిన memory/disk, SSH listener ఉన్నాయా చూడండి. Workstation నుంచి ఈ connection public SSH మార్గం పనిచేస్తుందని నిర్ధారిస్తుంది; application capacity లేదా HTTP website అందుబాటును కాదు.
Image firewall మార్చకుండా updates చేయండి
Cloud-init విజయవంతంగా పూర్తయిన తర్వాత metadata refresh చేసి upgradeను అంగీకరించే ముందు పరిశీలించండి:
sudo apt update
sudo apt upgradeమొదటి session తెరిచే ఉంచి రెండో SSH login పరీక్షించండి. Reboot అవసరమైతే server ఇంకా disposableగా ఉన్నప్పుడు sudo reboot చేసి మళ్లీ connect అయి basic checks చేయండి. Reboot ఉద్దేశపూర్వకంగా SSHను disconnect చేస్తుంది.
ఈ OCI Ubuntu imageపై UFWను install/enable చేయవద్దు. Persistent firewall, అవసరమైన iSCSI rulesతో documented conflicts ఉన్నాయి. ఆ rules కాపాడండి. Website portsకు OCI network permissions, compatible guest rules రెండూ అవసరం.
చిన్న స్క్రీన్లో అన్ని నిలువు వరుసలు చూడటానికి పట్టికను పక్కకు జరపండి.
| లోపం | మొదటి తనిఖీ |
|---|---|
| SSH timeout | Public IPv4, gateway route, current /32, network rules |
| Permission denied (publickey) | ubuntu username, private key, uploaded public key |
| Host-key mismatch | Instance identity, trusted boot record; known_hostsను గుడ్డిగా తొలగించవద్దు |
| Provisioning/package లోపాలు | Console history, cloud-init, repository connectivity |
ఖచ్చితమైన errorతో SSH నిర్ధారణ చేయండి. తర్వాత provider firewall అవసరాలు పాటిస్తూ వెబ్సైట్ deploymentకు వెళ్లండి.
రికవరీ copy ఉంచండి లేదా ఈ ప్రయోగాన్ని తొలగించండి
Application data, rebuild notesను instance బయట ఉంచి restoration పరీక్షించండి. ఇవి administrative access checks; production readiness కాదు. Website files ఉంటే వేరే కంప్యూటర్లో file restore సాధన చేయండి; ఇతర data recoveryని విడిగా నిర్ణయించండి.
పూర్తయిన తర్వాత అవసరమైన data export చేయండి. Recorded compartmentలో OCIDతో exact ubuntu-free-ssh instance ఎంచుకుని Terminate చేయండి. Boot volume defaultగా మిగులుతుంది; ఆ volume అవసరం లేనప్పుడు, export నిర్ధారించిన తర్వాతే permanent deletion ఎంచుకోండి. Retained volumes, backups, addresses, console connectionsను inventoryతో చూడండి. Subnet/gatewayను మరెవరూ వాడటం లేదని నిర్ధారించిన తర్వాతే తొలగించండి. ఒక్క ప్రయోగం కోసం account-wide deletion చేయవద్దు; మిగిలిన resources, usage మళ్లీ చూడండి.
ప్రశ్నలు, సమాధానాలు
ఇది public VPSనా, local Ubuntu VMనా?
ప్రొవైడర్ వద్ద public addressతో ఉన్న VM. SSH మీ workstation public IPకే పరిమితం చేశాం. మీ కంప్యూటర్ నిరంతరం నడవాల్సిన అవసరం లేదు.
Free shape అందుబాటులో లేకపోతే?
వేచి ఉండండి లేదా మరో documented కార్యక్రమాన్ని పరిశీలించండి. మరో shape, region, పెద్ద allocation free అవుతుందని అనుకోవద్దు. Account approval, capacityకి హామీ లేదు.
డాక్యుమెంటేషన్, ఆధారాలు
- ఆధారం: Oracle Always Free resources
- ఆధారం: Oracle platform images and essential firewall rules
- ఆధారం: Creating an Oracle Compute instance
- ఆధారం: Oracle SSH key pairs
- ఆధారం: Oracle public subnet scenario
- ఆధారం: Oracle internet gateway routing
- ఆధారం: Oracle security rules
- ఆధారం: Oracle console connections and Cloud Shell
- ఆధారం: Capturing Oracle instance console history
- ఆధారం: Cloud-init Keys to Console module
- ఆధారం: Connecting to an OCI Linux instance
- ఆధారం: Ubuntu 24.04 release notes: Oracle firewall compatibility
- ఆధారం: Terminating an Oracle instance