Verwenden Sie Ecryptfs mit sshfs

947
Dom

Ich versuche, ecryptfs auf sshfs zu verwenden, um eine verschlüsselte Freigabe auf einer neuen NAS-Box erstellen und darauf zugreifen zu können.

Der folgende Mount-Befehl funktioniert sowohl auf der NAS-Box als auch auf meinem lokalen Mancine:

mount -t ecryptfs /DATA/a_folder /DATA/another_folder 

einen verschlüsselten Ordner erstellen.

Ich kann verwenden

sshfs root@nashost:/DATA/some_folder /home/me/nas_box 

auf meinem lokalen Rechner, um einen Ordner aus meiner NAS-Box einzuhängen. Allerdings habe ich es einmal gemountet, wenn ich versuche, Ecryptfs so zu verwenden

mount -t ecryptfs /home/me/nas_box /DATA/decrypted 

dann erhalte ich den folgenden fehler

Error mounting eCryptfs: [-13] Permission denied Check your system logs; visit <http://launchpad.net/ecryptfs> 

Ich habe /var/log/messagesauf beiden Maschinen nachgesehen, aber da ist nichts. Ich habe keine Ahnung, ob das, was ich versuche, möglich ist oder welche Protokolle untersucht werden müssen, um mir zu helfen.

Nicht sicher, ob dies wichtig ist, aber die NAS-Box ist Centos und mein lokaler Rechner ist Ununtu.

Beratung wäre dankbar aufgenommen worden.


habe gerade folgendes in / var / log / syslog gefunden

mount.ecryptfs: could not resolve full path for source /home/me/nas_box [-13] 
1

1 Antwort auf die Frage

0
tetris11

http://ubuntuforums.org/showthread.php?t=2024094

Hello all,  I am trying to mount SSHFS and then mount an ecryptfs encrypted directory inside of it. I have been able to do this with root. I have added the mounts to fstab with a user option so I can have non-root users mounting them. Using a non-root user I am able to mount SSHFS and I can mount an ecryptfs directory as long as the ecryptfs directory is not located within the SSHFS mount. When I try to mount the ecryptfs directory within an SSHFS directory using a non-root use I am presented with an error that there is a misconfiguration.  Anybody have any insight? I am stumped.  Thank You  

Erweiterte Antwort 18. Juli 2012 # 2 Benutzerbild von Seeked Seeked Seeked ist offline 5 Cups of Ubuntu

Re: SSHFS und Ecryptfs

Use enfs instead of eCryptfs.  encfs works in the user space instead of the kernal space by default.   Last edited by Seeked; July 23rd, 2012 at 08:45 PM.