summaryrefslogtreecommitdiffstats
path: root/contrib/initramfs/README.initramfs.markdown
diff options
context:
space:
mode:
authorAndrey Prokopenko <[email protected]>2020-05-03 00:43:42 -0500
committerBrian Behlendorf <[email protected]>2020-05-07 16:41:16 -0700
commit1cc635a2dd0379181950a1458255ea8ae8b9c1e0 (patch)
treeb872c2a08620fe34cd6e7c6824ed6be927a99497 /contrib/initramfs/README.initramfs.markdown
parent746d22ee02d2617ee982f1620b06f882b924ce8e (diff)
Unlock encrypted root partition over SSH
This commit add a new feature for Debian-based distributions to unlock encrypted root partition over SSH. This feature is very handy on headless NAS or VPS cloud servers. To use this feature, you will need to install the dropbear-initramfs package. Reviewed-By: Brian Behlendorf <[email protected]> Reviewed-By: Tom Caputi <[email protected]> Signed-off-by: Andrey Prokopenko <[email protected]> Signed-off-by: Richard Laager <[email protected]> Closes #10027
Diffstat (limited to 'contrib/initramfs/README.initramfs.markdown')
-rw-r--r--contrib/initramfs/README.initramfs.markdown12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/initramfs/README.initramfs.markdown b/contrib/initramfs/README.initramfs.markdown
index c8bc9f4bd..ddae71a2e 100644
--- a/contrib/initramfs/README.initramfs.markdown
+++ b/contrib/initramfs/README.initramfs.markdown
@@ -72,3 +72,15 @@ The following kernel command line arguments are supported:
* `zfsdebug=(on,yes,1)`: Show extra debugging information
* `zfsforce=(on,yes,1)`: Force import the pool
* `rollback=(on,yes,1)`: Rollback to (instead of clone) the snapshot
+
+### Unlocking a ZFS encrypted root over SSH
+
+To use this feature:
+
+1. Install the `dropbear-initramfs` package. You may wish to uninstall the
+ `cryptsetup-initramfs` package to avoid warnings.
+2. Add your SSH key(s) to `/etc/dropbear-initramfs/authorized_keys`. Note
+ that Dropbear does not support ed25519 keys; use RSA (2048-bit or more)
+ instead.
+3. Rebuild the initramfs with your keys: `update-initramfs -u`
+4. During the system boot, login via SSH and run: `zfsunlock`