openshift - 无法git-克隆OpenShift应用程序

标签 openshift openshift-client-tools

我刚刚开设了一个OpenShift帐户,并完成了本教程:

https://www.openshift.com/blogs/any-version-of-nodejs-you-want-in-the-cloud-openshift-does-it-paas-style

在创建应用程序时,出现以下错误:

erelsgl@erelsgl-H61MLC:~/mynode$ sudo rhc create-app mynode nodejs-0.6
Application Options
-------------------
  Namespace:  erel
  Cartridges: nodejs-0.6
  Gear Size:  default
  Scaling:    no

Creating application 'mynode' ... done


Waiting for your DNS name to be available ... done

Cloning into 'mynode'...
Warning: Permanently added the RSA host key for IP address '23.22.156.99' to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: The remote end hung up unexpectedly
Unable to clone your repository. Called Git with: git clone
ssh://522c....@mynode-erel.rhcloud.com/~/git/mynode.git/ "mynode"

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING:  Your application was created successfully but had problems during
          configuration. Below is a list of the issues and steps you can
          take to complete the configuration of your application.

  Application URL: http://mynode-erel.rhcloud.com/

  Issues:
    1. We were unable to clone your application's git repo - Unable to clone your repository.
Called Git with: git clone
ssh://522c...@mynode-erel.rhcloud.com/~/git/mynode.git/ "mynode"

  Steps to complete your configuration:
    1. Clone your git repo
      $ rhc git-clone mynode

  If you continue to experience problems after completing these steps,
  you can try destroying and recreating the application:

    $ rhc app delete mynode --confirm

  Please contact us if you are unable to successfully create your
  application:

    Support - https://www.openshift.com/support

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



Your application 'mynode' is now available.

  URL:        http://mynode-erel.rhcloud.com/
  SSH to:     522c....@mynode-erel.rhcloud.com
  Git remote: ssh://522c....@mynode-erel.rhcloud.com/~/git/mynode.git/

Run 'rhc show-app mynode' for more details about your app.

我试图克隆,并得到了:
erelsgl@erelsgl-H61MLC:~/mynode$ sudo rhc git-clone mynode
Cloning into 'mynode'...
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: The remote end hung up unexpectedly
Unable to clone your repository. Called Git with: git clone
ssh://522c....@mynode-erel.rhcloud.com/~/git/mynode.git/ "mynode"

编辑:我有一个ssh key :
erelsgl@erelsgl-H61MLC:~/mynode$ sudo rhc sshkey list
default (type: ssh-rsa)
-----------------------
Fingerprint: 62:...

You have 1 SSH keys associated with your account.

最佳答案

我遇到了完全相同的问题,并在Windows下找到了解决方案。看来您使用的是Linux,但这可能会给您带来启示。

首先,您需要确保已为Git正确创建了SSL key (请在我的博客上查看此post以获取相关说明)。

然后,使用Windows版Git,右键单击该文件夹以克隆项目并输入SSL URL:

确保检查Load Putty Key并选择.ppk文件的路径。这对我来说就像是一种魅力。

从命令行克隆时,可能需要在Linux下指定私钥文件的路径。

关于openshift - 无法git-克隆OpenShift应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18684847/

相关文章:

azure - 如何将 `docker login` 发送到 OpenShift Docker 注册表

perl - 如何在 OpenShift 上运行 Mojolicious?

logging - 清除 OpenShift 上的日志文件 - RedHat

Openshift - 'oc' 命令失败并显示 "Unable to connect to the server: x509: certificate signed by unknown authority"

openshift - 如何从远程(openshift)下载文件/文件夹到本地系统

kubernetes - Openshift 外部 IP 待定/无

openshift - oc new-app 可以创建一个 Deployment 而不是一个 DeploymentConfig 吗?

docker - Kubernetes openshift:部署期间拒绝权限

ssl - Openshift "https"+non-www 不工作但 "http"+ non-www 工作

OpenShift 4.2 Rest API 文档