我在openshift repo上创建了一个子模块(bitbucket回购)。在Openshift上使用git子模块和ssh验证
我现在.gitmodules
配置:
[submodule "php"]
path = php
url = [email protected]:sgtcarneiro/repo.git
的问题是,当我按下这个代码到我的Openshift程序,我得到folling错误:
remote: Host key verification failed.
remote: fatal: The remote end hung up unexpectedly
remote: Clone of '[email protected]:sgtcarneiro/repo.git' into submodule path 'php' failed
这是因为我没有预期在Bitbucket的任何地方都可以找到来自Openshift服务器的pub key。我已经尝试检查我的.ssh/
以查找/编辑公钥,但我没有任何权限来访问它。
PS:作为解决方法,我在子模块上使用用户名和密码进行HTTPS身份验证,并且工作正常。