Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
well, working under Debian I think it won’t work unless you create a loop device with: $ losetup /dev/loop0 testfile
and then
$ cryptsetup -y luksFormat /dev/loop0
etc…
Hello, thanks for the great article. However /dev/random would not produce any output on my server, even after hours. So I spent the whole day trying to figure out why, and it seems that using urandom is fine, and /dev/random is not even more “secure”.
If you managed to use /dev/random to create a 512M file, could you tell me how many hours did it take?
http://security.stackexchange.com/questions/3936/is-a-rand-from-dev-urandom-secure-for-a-login-key http://stackoverflow.com/a/5639631
You can install Haveged for additonal entropy: <a href=“https://www.digitalocean.com/community/articles/how-to-setup-additional-entropy-for-cloud-servers-using-haveged”>https://www.digitalocean.com/community/articles/how-to-setup-additional-entropy-for-cloud-servers-using-haveged</a>.
What would you suggest if I needed to send servers to remote locations, and I had code on there that I would like not to be stolen, safe to assume that they can get console access, but I want to prevent them from being able to remove the drive and mount it to another system… and still need this code to run at boot, and still access everything via a SSH or RSSH connection.
I spent 15-20 minutes looking for instructions on how to set up a dm-crypt file container. Yours was, by far, the easiest to follow.
Thanks !
Gino
This works perfectly on my Fedora Core 20 server. Thank you for a good guide.
I have a question as an example : I copied file1 and file2 into the encrypted container. However, let us suppose that the computer was shuted down by power cut, while I was copying file3 into the encrypted container. In this case, obviously, the (piece of) file3 would be damaged. But how about file1 and file2? Could I get the file1 and file2 clearly from the encrypted container after rebooting the computer?
Sincerely, Hodol.
Works perfectly on CentOS 7
If you are thinking of automounting the encrypted file system, you want to proceed as described in step four here:
Thanks for the great article! But I think as long as the encryption keys will be in RAM, the security of this approach is limited. A solution could be not to store these keys in RAM at all:
I really wonder, why this patch has not found its way into the mainline kernel. What are you guys from DO thinking about it?
Details on Page 10 - Memory attacks: https://www1.informatik.uni-erlangen.de/filepool/projects/tresor/tresor.pdf