When I encrypt my clonezilla saved image, I enter a passphrase, then when I want to restore this image Clonezilla ask me to enter this passphrase. I want to put my ecryptfs passphrase inside file.txt and then instruct clonezilla to get it automatically when it need it without ask me to enter my passphrase. Can anyone please tell me how to do this ?
in fact it is to be sure that our clonezilla backup can only be restored on our 2 PCs because any other PC will not have the .txt file in which we will have put the passphrase
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually Clonezilla live use ecryptfs to encrypt the image dir, therefore you can use command like:
mount -t ecryptfs /home/partimag/2017-10-29-04-img /tmp/ecryptfs_mntpoint -o ecryptfs_cipher=aes,ecryptfs_key_bytes=16,no_sig_cache,ecryptfs_enable_filename_crypto=n,ecryptfs_passthrough,key=passphrase:passphrase_passwd_file=/tmp/your_ecryptfs_file.txt
When I encrypt my clonezilla saved image, I enter a passphrase, then when I want to restore this image Clonezilla ask me to enter this passphrase. I want to put my ecryptfs passphrase inside file.txt and then instruct clonezilla to get it automatically when it need it without ask me to enter my passphrase. Can anyone please tell me how to do this ?
in fact it is to be sure that our clonezilla backup can only be restored on our 2 PCs because any other PC will not have the .txt file in which we will have put the passphrase
Actually Clonezilla live use ecryptfs to encrypt the image dir, therefore you can use command like:
mount -t ecryptfs /home/partimag/2017-10-29-04-img /tmp/ecryptfs_mntpoint -o ecryptfs_cipher=aes,ecryptfs_key_bytes=16,no_sig_cache,ecryptfs_enable_filename_crypto=n,ecryptfs_passthrough,key=passphrase:passphrase_passwd_file=/tmp/your_ecryptfs_file.txt
In the above example, you can put your password in /tmp/your_ecryptfs_file.txt. For more info about ecryptfs, you can check:
https://www.howtoforge.com/tutorial/how-to-encrypt-directories-and-partitions-with-ecryptfs-on-debian/
Steven