I tried to setup ecryptfs on Debian Jessie, but I made an error and I cannot login now. So I took my encrypted files, and placed them in a safe place. How do I decrypt these files? I still remember the password.

I've searched on every page on google, but nothing has worked so far.


This is actually pretty simple. If you have ecryptfs installed you can simply use the command


This will find the location of your encrypted files and will mount them decrypted in a temporary location.


man ecryptfs-recover-private

for more information.

  • It says "ERROR: No private directories found; make sure that your root filesystem is mounted." – Satudarah Apr 22 '17 at 15:56
  • You sad, that you placed your encrypted home in a safe location. Where is that location? What files did you copy to that location? – Marco21 Apr 22 '17 at 15:59
  • The files are on my usb, I copied a file called "Info.txt" with all my information. I also have a .asc file on it with my gpg key. – Satudarah Apr 22 '17 at 16:03
  • 1
    Did you copy the files in "/home/.ecryptfs"? This is the location where the Encrypted files are stored. – Marco21 Apr 22 '17 at 16:05
  • 1
    Sorry but then it is impossible to recover your files. The encrypted files are located at /home/.ecryptfs. If you lost these files there is obviously no chance to get your files back. – Marco21 Apr 22 '17 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.