OpenSSH
[Top] [All Lists]

mirroring a loop device across an ssh connection

To: openssh-unix-dev@mindrot.org
Subject: mirroring a loop device across an ssh connection
From: Jason <openssh@lakedaemon.net>
Date: Fri, 01 Dec 2006 12:35:59 -0500
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
Reply-to: openssh@lakedaemon.net
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
User-agent: Thunderbird 1.5.0.8 (X11/20061109)
all,

I've been looking into a secure way of accessing a remote loopback 
encrypted partition securely via openssh.

The basic idea I have currently is that a file/partition is connected to 
/dev/loop0 on a remote server, which I have an ssh connection to.  I 
hold the key (for cryptsetup via dm_crypt) on the local client.  I'd 
like to mirror the loop device of the server on the client.  Once that 
is done, I would run cryptsetup with the key on the client and mount as 
normal.

The end application would be for remote secure backup (rsync?) of a 
second encrypted volume on the client.  It is assumed that the remote 
server is untrusted, hence, not running cryptsetup/dm_crypt on the server.

So far, I've looked at Rex/sfs [1], pseudo-tty programming, and a little 
of unix domain sockets.  I'm more familiar with network socket 
programming, though.  My main holdup right now is my lack of familiarity 
with openssh internals.  If someone could point to the right section of 
the src tree, perhaps with a nudge towards how to do this securely, it 
would greatly appreciated.

tia,

Jason.


*** PDF download ***
[1] - http://pdos.csail.mit.edu/papers/sfs:rextr03/MIT-LCS-TR-884.pdf
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>