指南

원격 잠금 해제로 VPS에서 전체 디스크 암호화

고급30분 읽기업데이트됨 2026년 6월 11일
간단한 답변

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가 내 디스크를 잠금 해제할 수 있나요?

아니요. 우리는 비밀번호를 절대 보관하지 않으며, 복구 메커니즘도 없습니다. 분실하면 데이터는 영구히 소실됩니다.