Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running FreeBSD and I'd like to have user's files stored encrypted using his/her password, and have seamless SSH access to those files as well (provided that the user always uses password-based authentication).

In Ubuntu this exact process is possible with Encrypted Home Directory.

Is it possible in FreeBSD?

If not, is there any other way to setup encryption of user files transferred via SSH using the password of the user as the encryption key?

share|improve this question

Freebsd has a kernel module, pefs, that can perform filesystem (directory) encryption. has a tutorial on encrypting a user's home directory and tying that to PAM at login.

share|improve this answer
pefs currently doesn't work with SSH PAM auth – RustyX Sep 10 '14 at 10:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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