[ 
https://issues.apache.org/jira/browse/VFS-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17726803#comment-17726803
 ] 

Rob Spoor commented on VFS-838:
-------------------------------

A quick attempt to simply replace the dependency gives the following error 
during testing:
{code}Caused by: com.jcraft.jsch.JSchAlgoNegoFailException: Algorithm 
negotiation fail: algorithmName="kex" 
jschProposal="ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c"
 serverProposal="diffie-hellman-group14-sha1,diffie-hellman-group1-sha1"
        at com.jcraft.jsch.KeyExchange.guess(KeyExchange.java:155)
        at com.jcraft.jsch.Session.receive_kexinit(Session.java:569)
        at com.jcraft.jsch.Session.connect(Session.java:320)
        at com.jcraft.jsch.Session.connect(Session.java:187)
        at 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:235){code}

I have solved similar issues for my own project by changing sshd-core to 
sshd-sftp with a newer version, but that comes with its own (quite large) set 
of compiler errors.
An alternative could be to change the JSch configuration to add either 
{{diffie-hellman-group14-sha1}} or {{diffie-hellman-group1-sha1}} as supported 
algorithm.

> Port from Jsch to Apache Mina
> -----------------------------
>
>                 Key: VFS-838
>                 URL: https://issues.apache.org/jira/browse/VFS-838
>             Project: Commons VFS
>          Issue Type: Bug
>            Reporter: Gary D. Gregory
>            Priority: Major
>
> Port from Jsch to Apache Mina
> JSch seems unmaintained.
> https://mina.apache.org/downloads-sshd.html



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to