Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-945

Support OpenSSH private keys with maven-scm-provider-jgit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.11.2
    • 2.0.0-M2
    • None

    Description

      For SSH based authentication with private keys in the OpenSSH format the following error is being emitted: invalid privatekey: ...
      This is due to the use of JGit 4.5.4 (https://github.com/apache/maven-scm/blob/c5eb2c187568809e0dc0ea9ac83031f1dcb5ad1a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/pom.xml#L53) which used JSch which lacks support for those private keys. JGit 5.2 comes with a new SSH implementation (https://bugs.eclipse.org/bugs/show_bug.cgi?id=520927) and should by that also support OpenSSH private keys.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: