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 ]