I'm working on a remote machine, which I SSH to.
My goal is to have a folder which is encrypted when I close my SSH session, and decrypted when I open a new one.
I've tried using ecryptfs
's ecryptfs-setup-private
putting the folders I want encrypted in the ~/Private
folder, but when I connected from another user's SSH, he could see the folder and its content.
I don't think I did anything wrong there, seems like it's not designed for SSH access.
The folders are quite large, and I wish to keep the time overhead as minimal as possible.
How can I achieve that?
ecryptfs-setup-private
, I've put the folder I wish to be encrypted when I'm not SSHing in~/Private
and I checked from another user's SSH if it is visible - and indeed it was visible even though my user was not SSHed in – bluesummers Jan 18 '18 at 09:53ecryptfs-umount-private
when you logout, and thenecryptfs-mount-private
when you login. You should also usechmod og= ~/Private
to stop non-root users from seeing your directory. – meuh Jan 18 '18 at 18:11