我在 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.
有谁知道如何解决这个问题?