Bug 1175682 - Cannot clone repositories from Business Central over ssh:// protocol
Summary: Cannot clone repositories from Business Central over ssh:// protocol
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ER5
: 6.1.0
Assignee: Alexandre Porcelli
QA Contact: Jiri Locker
Depends On:
Blocks: 1122594 1128815
TreeView+ depends on / blocked
Reported: 2014-12-18 11:37 UTC by Jiri Locker
Modified: 2016-08-01 01:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-12-29 17:41:27 UTC
Type: Bug

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Bugzilla 1163840 None None None Never

Internal Links: 1163840

Description Jiri Locker 2014-12-18 11:37:29 UTC
Description of problem:
Attempt to clone any repository managed by Business Central over SSH ends like this:

> $ git clone -v ssh://admin@
> Cloning into 'system'...
> Password authentication
> Password: 
> Invalid credentials.fatal: Could not read from remote repository.
> Please make sure you have the correct access rights
> and the repository exists.

Although server log inidicates successful authentication:

> 12:25:05,201 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[45ebea8a]-nio2-thread-5) Server session created from /
> 12:25:05,202 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[45ebea8a]-nio2-thread-5) Kex: server->client aes128-ctr hmac-md5 none
> 12:25:05,202 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[45ebea8a]-nio2-thread-5) Kex: client->server aes128-ctr hmac-md5 none
> 12:25:07,132 INFO  [org.apache.sshd.server.session.ServerUserAuthService] (sshd-SshServer[45ebea8a]-nio2-thread-4) Session admin@/ authenticated
> 12:25:07,135 INFO  [org.apache.sshd.server.channel.ChannelSession] (sshd-SshServer[45ebea8a]-nio2-thread-5) Executing command: git-upload-pack '/system'

Version-Release number of selected component (if applicable):
6.1.0 ER3

How reproducible:

Steps to Reproduce:
1. Launch Business Central deployed on EAP.
2. Run git clone -v ssh://<admin_user>@ where admin_user is a user with admin role. (It may be neccessary to remove an old host fingerprint from ~/.ssh/known_hosts and confirm the new fingerprint.)

Actual results:
Authentication phase fails on clinet, cloning does not start.

Expected results:
Repository should be cloned successfully.

Additional info:
Worked in ER2.

Comment 1 Jiri Locker 2014-12-18 11:45:11 UTC
Cloning using git:// protocol works (git clone git://

Comment 2 Alexandre Porcelli 2014-12-23 19:58:47 UTC
It works for me, are you sure you have the expected roles?

Comment 3 Jiri Locker 2015-01-12 14:55:37 UTC
Yes, I have a user named 'admin' with password 'admin' and role 'admin'.

Java (EAP runtime):
  java.vendor = Oracle Corporation
  java.version = 1.7.0_71

git version 1.9.3

Any other information you would need? Please move the bug to MODIFIED if you believe it has been fixed, so that we can verify it in the next build. The problem may not manifest in community builds or may depend on certain environment. It exists in the product though and we need to investigate.

Comment 4 Alexandre Porcelli 2015-01-14 11:38:47 UTC
Fixed now, I couldn't reproduce before as my admin user on EAP was configured `wrongly` - here the fix:

(6.2.x) http://github.com/droolsjbpm/kie-wb-common/commit/7766ba998
(master) http://github.com/droolsjbpm/kie-wb-common/commit/85ce29770

Comment 5 Jiri Locker 2015-02-19 12:36:48 UTC
Fix verified. Users with any of admin, analyst or developer roles are able to clone repositories.

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