गाइड

रिमोट अनलॉक के साथ VPS पर पूर्ण-डिस्क एन्क्रिप्शन

उन्नत30 मिनट पढ़ेंअपडेट किया गया 11 जून 2026
संक्षिप्त उत्तर

initramfs में dropbear SSH डेमॉन के साथ LUKS2 आपको रूट फाइलसिस्टम को एन्क्रिप्ट करने और हर बूट पर दूर से पासफ़्रेज़ प्रदान करने की अनुमति देता है। प्रदाता के पास कुंजी कभी नहीं होती, इसलिए बंद डिस्क सिफरटेक्स्ट है। यह समझौता किए गए हाइपरवाइज़र से सुरक्षा नहीं करता, और कोई भी प्रदाता ईमानदारी से अन्यथा दावा नहीं कर सकता।

01 समझें कि यह वास्तव में क्या सुरक्षा करता है

Protects against: physical seizure of a powered-off disk, decommissioned hardware, a datacentre incident, a technician with physical access. Does not protect against: a compromised running hypervisor, or a compromise of the running instance. The key is in memory while the machine runs.

02 एन्क्रिप्टेड रूट पर इंस्टॉल करें

On the Bastion line this is preconfigured. On any other instance, boot the distribution installer through the out-of-band console and choose an encrypted LVM layout.

03 initramfs में dropbear जोड़ें

This is what lets you supply the passphrase over SSH before the root filesystem is mounted.

apt install -y dropbear-initramfs cryptsetup-initramfs
echo 'DROPBEAR_OPTIONS="-p 2222 -s -j -k"' >> /etc/dropbear/initramfs/dropbear.conf
cat ~/.ssh/id_ed25519.pub > /etc/dropbear/initramfs/authorized_keys
update-initramfs -u -k all

04 बूट नेटवर्क कॉन्फ़िगर करें

The initramfs has no DHCP client by default; give it a static configuration matching your instance.

# /etc/initramfs-tools/initramfs.conf
IP=203.0.113.10::203.0.113.1:255.255.255.0::eth0:off

05 प्रत्येक रीबूट के बाद अनलॉक करें

Connect on the initramfs port and supply the passphrase. The boot then continues normally.

ssh -p 2222 [email protected]
# then: cryptroot-unlock

अक्सर पूछे जाने वाले प्रश्न

यदि मेरे सोते समय सर्वर रीबूट हो जाए तो क्या होगा?

यह अनलॉक प्रॉम्प्ट पर प्रतीक्षा करता है। यही व्यापार है: अनगढ़ित रीबूट असंभव हैं, जो वास्तव में कुंजी को आपका बनाता है।

क्या OnionVPS मेरी डिस्क अनलॉक कर सकता है?

नहीं। हम पासफ़्रेज़ कभी नहीं रखते, और कोई पुनर्प्राप्ति तंत्र नहीं है। यदि आप इसे खो देते हैं, डेटा चला जाता है।