Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-1058

unable to clone git repository from github by ssh with ssh key+passphrase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 6.3.0.GA
    • 6.2.0
    • Business Central
    • None

      Description of problem:
      Customerwant to clone git repository from their github to business central over ssh.

      According to the following document,

      https://help.github.com/articles/generating-ssh-keys/

      They configured ssh key with passphrase for his github account.
      They then confirmed that git clone from this github to local file system works without inputting passphrase.

      e.g.

      $ ssh -T git@github.com
      $ git clone ssh://git@github.com/jboss/BPMSrepository.git

      But when trying to clone it from this github on business central with above ssh url, it fails with the exception something like the following.

      ERROR [org.guvnor.structure.backend.repositories.RepositoryServiceImpl] (http-localhost.localdomain/127.0.0.1:8080-5) Error during create repository: java.lang.RuntimeException: ssh://git@github.com:22: org.eclipse.jgit.transport.CredentialItem$StringTypeassphrase for /home/jboss/.ssh/id_rsa
      :
      Caused by: java.lang.RuntimeException: org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh://git@github.com:22: org.eclipse.jgit.transport.CredentialItem$StringTypeassphrase for /home/jboss/.ssh/id_rsa

      Version-Release number of selected component (if applicable):
      BxMS 6.2.0

      How reproducible:
      see below

      Steps to Reproduce:
      1. According to the following document,

      https://help.github.com/articles/generating-ssh-keys/

      setup ssh key with passphrase and upload public key to your gut hub account

      2. login business central and then create repository via
      Authoring -> Administration -> Repositories -> clone repository
      with the url something like

      ssh://git@github.com/jboss/BPMSrepository.git

      Actual results:
      cloning repository fails as passphrase is required

      Expected results:
      closing repository succeed

      Additional info:

              abakos@redhat.com Alexandre Porcelli
              rhn-support-hmiura Hiroko Miura
              Jan Hrcek Jan Hrcek (Inactive)
              Jan Hrcek Jan Hrcek (Inactive)
              Alessandro Lazarotti, Hiroko Miura, Kris Verlaenen, Michael Anstis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: