OpenSSH
[Top] [All Lists]

Re: mirroring a loop device across an ssh connection

To: Jefferson Ogata <Jefferson.Ogata@noaa.gov>
Subject: Re: mirroring a loop device across an ssh connection
From: Jason <openssh@lakedaemon.net>
Date: Fri, 01 Dec 2006 14:14:50 -0500
Cc: openssh-unix-dev@mindrot.org
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
In-reply-to: <457073E2.9070701@noaa.gov>
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>
References: <457067FF.8050201@lakedaemon.net> <45706ACE.2070301@noaa.gov> <457070C0.8040808@lakedaemon.net> <457073E2.9070701@noaa.gov>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
User-agent: Thunderbird 1.5.0.8 (X11/20061109)
Jefferson Ogata wrote:
> [not sure what's up with reply-to here; looks like my previous reply
> went only to you]

My fault, I think.  I recently migrated to thunderbird from mutt, and 
when I set up all my aliases (eg openssh@lakedaemon.net), I filled in 
the Reply-To field.  Apparently mindrot's list server doesn't rewrite 
the Reply-To field.  I've since fixed it for this alias.

> 
> On 2006-12-01 18:13, Jason wrote:
>> Jefferson Ogata wrote:
>>> On 2006-12-01 17:35, Jason wrote:
>>>> 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.
>>> Take a look at drbd.
>> Thanks, I hadn't stumbled across that yet.  There is only one small 
>> problem with it, which I failed to mention in my initial mail.  I can't 
>> assume I have root access to the remote machine.  I might be able to get 
>> an 'sudo losetup ...' approved, but most likely I'll need to mirror the 
>> file descriptor of the file container over the ssh connection.
>>
>> Currently, for proof of concept, I have root access on the server, but I 
>> may not in the final implementation.
> 
> In that case, fuse is another option that might help, tho I'm not
> certain as I haven't used it.

I just took a quick look at it.  While it operates in userspace, it 
requires the fuse.ko module to be loaded, which would be a root level 
activity, perhaps even a kernel module compile.  I'll take a closer look 
at it this evening.

I'm beginning to think more along the lines of ssh creating a local 
virtual file and passing all operations on it to the remote file. 
Unfortunately, since a file isn't a stream (it's fseek'able), this could 
be difficult.

Jason.
_______________________________________________
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>