Ere*_*evi 6 openshift openshift-client-tools
我刚刚开了一个OpenShift帐户,并完成了本教程:
当我创建应用程序时,我收到以下错误:
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.
Run Code Online (Sandbox Code Playgroud)
我试图克隆,得到了这个:
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"
Run Code Online (Sandbox Code Playgroud)
编辑:我有一个ssh键:
erelsgl@erelsgl-H61MLC:~/mynode$ sudo rhc sshkey list
default (type: ssh-rsa)
-----------------------
Fingerprint: 62:...
You have 1 SSH keys associated with your account.
Run Code Online (Sandbox Code Playgroud)
你的错误是你克隆了应用程序主机内的存储库,这将在openshift上的应用程序主机中克隆你的存储库,然后它会给你一个拒绝在主机上写访问权限的权限,你必须在你的本地关闭它.
首先打开命令提示符,然后键入:
mkdir apprepo
cd /d apprepo
git clone ssh://522c....@mynode-erel.rhcloud.com/~/git/mynode.git/
Run Code Online (Sandbox Code Playgroud)
如果您在存储库中有任何更改:
git commit -a
git push
Run Code Online (Sandbox Code Playgroud)
您的 ssh 密钥似乎有问题。你有没有在 openshift 中添加一个?你可以跑去rhc sshkey list检查一下。确保这些私钥之一位于您的 ssh 文件夹中,C:\user\\[username]\\.ssh\对于 Windows 和~/.sshLinux(请注意,在这两个操作系统上,它们都是隐藏文件夹)。Openshift 拒绝让您使用 git 存储库执行任何操作,除非它可以验证您的 ssh 密钥。请查看此Openshift SSH 文档以了解更多详细信息。
| 归档时间: |
|
| 查看次数: |
16563 次 |
| 最近记录: |