I'm using ecryptfs to backup the entire contents of my Ubuntu box to an external hard drive enclosure. I've followed this guide and have things properly backing-up and encrypted as I want.
That's all well and good until I have to actually use the encrypted backup, and that's got me wondering. In the event that I lose my entire primary hard drive, what files/info should I readily have access to in order to de-crypt my backup? Besides the options used to setup the initial encryption, are these the only two things I need:?
- passphrase
- sig key
For a backup, you might just need to remember the passphrase and the options you used to set up the encrypted folder, so everything in the example page you linked:
The
ecryptfs_sig
is derived from the passphrase, so is really just to verify you've entered the right passphrase, not really essential to the mount command.I can't say I like the "Add your passphrase in this file" part of the automatic mount section, detracts from the security by having the passphrase in plain text. Your system can use eCryptFS & PAM to automatically mount encrypted folders on login, using your login passphrase to "wrap"/encrypt the eCryptFS key. See
man ecryptfs
& the man pages for it's tools, likeecryptfs-setup-private