Hi Alexander. I 'm not aware of any more recent implementation of Sftp at this point, but maybe others have worked on that. Anyway, I think it would definitely makes sense to support v5 or v6 of the protocol, but I don't have much time to work on that unfortunately. I'd be more than happy to help you however if you want to write a patch to do that.
On Fri, Feb 18, 2011 at 16:10, Alexander Cherednichenko <[email protected]> wrote: > Hi guys! > > Trying to use Apache SSHD in our project - we need an SFTP server embedded > to our software. > > Looks like support of the SFTP is pretty basic in the current (0.5.0) > version of the Apache SSHD. For instance, modern putty seems not to be > connecting to SSHD server via SFTP protocol (protocol version supported by > MINA project is only 3, and WinSCP requires 5). > > Maybe there's already a more recent implementation of > the org.apache.sshd.server.sftp.SftpSubsystem equivalent supportin more > recent version of the protocol? > > Thank you guys! > That's the spring config I am using, thanks in advance! > > <beans:bean id="sftpServerKeyPairProvider" > class="org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider"> > <beans:constructor-arg value="classpath:hostkey.ser"/> > </beans:bean> > > <beans:bean id="sftpCommandFactory" > class="org.apache.sshd.server.command.ScpCommandFactory"/> > > <beans:bean id="sftpServer" class="org.apache.sshd.SshServer" > factory-method="setUpDefaultServer"> > <beans:property name="port" value="4444"/> > <beans:property name="keyPairProvider" > ref="sftpServerKeyPairProvider"/> > <beans:property name="commandFactory" ref="sftpCommandFactory"/> > <beans:property name="passwordAuthenticator"> > <beans:bean > class="com.newsoft.app.sshd.MyPasswordAuthenticationHandler"/> > </beans:property> > <beans:property name="subsystemFactories"> > <beans:list> > <beans:bean > class="org.apache.sshd.server.sftp.SftpSubsystem$Factory"/> > </beans:list> > </beans:property> > </beans:bean> > > -- > Alexander Cherednichenko, > Software Engineer > > [ the only way out is the way up ] > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com
