I have an encrypted external disk on a linux server.
On the server, I can do this locally to decrypt
cryptsetup -d keyfile luksOpen /dev/sdx1 /mnt/decrypted
but I prefer to avoid doing that on the server side.
I want to access the server (via ssh/sshfs) and only decrypt the data remotely on my client machine.
To access and decrypt the data remotely, I have to
- mount the encrypted
/dev/sdx1
locally on the server (without decrypting it!!) to/mnt/encrypted
- mount
/mnt/encrypted
via sshfs on a client machine (then useluksOpen
to decrypt)
How can I do step 1 without decrypting data?
Thanks, Chris
ps: maybe I should just use an encrypted container (a file on the server's file system) and not a whole partition? This way I could mount the folder containing the encrypted container/file remotely via sshfs? (and only decrypt it on the client machine)