I think, what we would really need is an SftpSubsystem implementation
that would be reuse FTPServer.
That would enable per-user root directory, reusing the ftplet file
system abstraction and other neat things that ftpserver could provide.
I'd like to keep the sshd-core dependencies to a minimum, but maybe we
could start a new separate module sshd-sftp which could leverage the
ftplet api and maybe ftpserver.

On Thu, Jun 3, 2010 at 11:21, Frank van der Kleij <[email protected]> wrote:
>
>
> A file abstraction layer would be great; I think I even already saw a JIRA 
> request for that.
>
> To connect SFTP with Commons VFS I created a subclass of SftpSubsystem,
> but it
>
> required lots of copied code - same for Scp.
>
> (http://vfs-utils.svn.sourceforge.net/viewvc/vfs-utils/trunk/shell/sshd/src/main/java/org/vfsutils/shell/sshd/VfsSftpSubsystem.java?view=markup)
>
> The FTPServer file abstraction layer can be a source of inspiration. My 
> integration of
> VFS with that was much cleaner. I guess a shared Mina file abstraction layer 
> is not an option?
>
> Frank
>
>> Date: Wed, 2 Jun 2010 08:53:22 +0200
>> Subject: Re: sshd/sftp backed by db
>> From: [email protected]
>> To: [email protected]
>>
>> Right, SftpSubsystem is the right location to look at.  I guess you
>> could either rewrite it on top of a DB, or we'd have to provide an
>> abstraction layer on top of the file system (which could only be a few
>> key methods to easily override in a subclass).
>>
>> On Mon, May 31, 2010 at 23:06, Chuck Johnstone
>> <[email protected]> wrote:
>> > To simplify our application we implemented a db backend to ftpserver and
>> > hosted it in our webapp.  Now we can use FTPS load/access files directly
>> > from the db, a very nice feature.
>> >
>> > Now we want to do the same thing with SFTP.  SSHD 0.4.0 has support for
>> > SFTP.  Is hosting files in the db a feasible feature in SSHD?
>> >
>> > If so what class should I look at to get started, StfpSubsystem?  A quick
>> > hint in the right direction would be appreciated, I can figure out the
>> > details...
>> >
>> > Thanks
>> > Chuck Johnstone
>> >
>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>
> _________________________________________________________________
> New Windows 7: Simplify what you do everyday. Find the right PC for you.
> http://windows.microsoft.com/shop



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to