Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mwiede/jsch fork of jsch #47

Closed
schmidti159 opened this issue Apr 10, 2024 · 2 comments
Closed

Use mwiede/jsch fork of jsch #47

schmidti159 opened this issue Apr 10, 2024 · 2 comments

Comments

@schmidti159
Copy link

schmidti159 commented Apr 10, 2024

Description

com.jcraft:jsch is effectively dead (last release from november 2018), but there is an actively maintained fork: https://github.com/mwiede/jsch.

Please consider switching to this fork.

Motivation

As jcraft:jsch is not maintained any more, it will not receive any new encryption ciphers and will continue to support outdated potentially insecure ciphers.

Alternatives considered

No response

Additional context

I stumbled upon this whole situation when I wanted to connect to a git server using a ssh url and it did not work because I used a newer open ssh version to generate my private key.

The new fork does not support this new format as well, but there is at least an issue for it: mwiede/jsch#31

@miurahr
Copy link

miurahr commented May 5, 2024

Because jgit project have already moved to switch ssh library to apache-mina-sshd, I think it is no active reason for jgit project to work for it. You can use mwiede/jsch with your own risk by configuring your software project, for example in Gradle,

        implementation 'org.eclipse.jgit:org.eclipse.jgit:5.13.1.202206130422-r'
        // Original JSch is unmaintained and dead, so we use forked version, mwiede/jsch
        // to fix BUGS#1075, and to support elliptic curve ciphers and improved ssh agent
        implementation 'com.github.mwiede:jsch:0.2.3'
        // https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit.ssh.jsch
        implementation ('org.eclipse.jgit:org.eclipse.jgit.ssh.jsch:5.13.1.202206130422-r') {
            exclude module: 'jsch'
        }

It works well at least in version 5.13.1.

@schmidti159
Copy link
Author

Thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants