Bug 1304616 - unable to clone git repository from github by ssh with ssh key+passphrase
Summary: unable to clone git repository from github by ssh with ssh key+passphrase
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Alexandre Porcelli
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-04 08:07 UTC by Hiroko Miura
Modified: 2020-03-27 20:12 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:12:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1299619 0 high CLOSED Business Central Repo Clone Fails To Clone SCP Style SSH URLs 2021-02-22 00:41:40 UTC

Internal Links: 1299619

Description Hiroko Miura 2016-02-04 08:07:39 UTC
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
 $ git clone ssh://git/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: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: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/jboss/BPMSrepository.git



Actual results:
cloning repository fails as passphrase is required

Expected results:
closing repository succeed

Additional info:

Comment 4 Alexandre Porcelli 2016-03-07 13:09:22 UTC
Not: Passphrase will be supported on 6.3:

https://github.com/uberfire/uberfire/commit/d3be632fda6bfe77fb8570cd163ce77ffcae2366


Note You need to log in before you can comment on or make changes to this bug.