1

我在 Minishift 实例上部署了 KIE Workbench。我想克隆存储库。

首先我知道,我应该使 ssh 端口可以访问。为此,我使用以下命令:

$ oc port-forward workbench-1-vfd6k 8001:8001

要检查按预期公开的端口,我使用“telnet”并能够观察 sshd 工作:

$ telnet localhost 8001
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-SSHD-CORE-1.6.0

到目前为止,一切都很好。但是,实际克隆不起作用:

$ git clone ssh://admin@localhost:8001/myrepo
Cloning into 'myrepo'...
Warning: Permanently added '[localhost]:8001' (DSA) to the list of known hosts.
ssh_dispatch_run_fatal: Connection to 127.0.0.1 port 8001: incorrect signature
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

有谁知道如何解决这个问题?

4

2 回答 2

0

路径应该类似于 /。在我的情况下,我做了以下git clone ssh://kieAdminUser@localhost:8001/myteam/Course-Scheduling

还要确保用户存在于应用程序领域,而不是管理领域

于 2018-04-24T11:21:00.690 回答
0

尝试将以下内容添加到

<property name="org.uberfire.nio.git.ssh.algorithm" value="RSA"/

https://access.redhat.com/solutions/3362861

于 2018-03-28T22:13:57.890 回答