简体   繁体   English

主机密钥验证与Mavericks Server的Xcode失败

[英]Host key verification failed Xcode with Mavericks Server

I'm trying to get a CI setup going and have got Mavericks server downloaded and linked with Xcode all on one machine. 我正在尝试进行CI设置,并在一台机器上下载Mavericks服务器并与Xcode链接。

Here's the set up: 这是设置:

  1. Two git repos, hosted on OS X server, named CI and CISubmodule . 两个git repos,托管在OS X服务器上,命名为CICISubmodule
  2. CISubmodule added as a submodule to CI CISubmodule作为CI的子模块添加

Every time I add bot I get a Host key verification failed error on integration. 每次添加bot时,我都会在集成时收到Host key verification failed错误。 It's clear from the logs that the server is unable to clone CISubmodule due to an authentication error (I've tried SSH, HTTP, HTTPS) but I don't know why it's failing authentication. 从日志中可以清楚地看出,由于身份验证错误(我尝试过SSH,HTTP,HTTPS),服务器无法克隆CISubmodule ,但我不知道为什么验证失败。

I've set up the server so that logged in users can read and write. 我已经设置了服务器,以便登录的用户可以读写。

I've tried everything mentioned here . 我试过这里提到的一切。

I'm guessing it's because the server is running as teamsserver and the repo is probably under my username, but I can't figure out how to give it permission to clone. 我猜这是因为服务器作为teamsserver运行,repo可能在我的用户名下,但我无法弄清楚如何赋予它克隆的权限。 Could it be that the SSH key requires a password? 可能是SSH密钥需要密码吗? If so, how do I set it up so that it doesn't need a password any more? 如果是这样,我该如何设置它以便它不再需要密码?

Any guidance would be greatly appreciated. 任何指导将不胜感激。

Thanks, 谢谢,

Simon 西蒙

I had the same case and I am not sure what happend exactly, I think the reason was I had more remote repository accesses and ssh keys pointing git-server side pointing to the same repository. 我有相同的情况,我不确定究竟发生了什么,我认为原因是我有更多的远程存储库访问和指向git-server端指向同一存储库的ssh键。

Deleting the remote repository accesses and cleaning up authorized_keys file helped. 删除远程存储库访问和清理authorized_keys文件有帮助。

I can confirm the CI server works with submodules, but make sure the .gitmodules file and xccheckout file point to the same repos 我可以确认CI服务器使用子模块,但确保.gitmodules文件和xccheckout文件指向相同的存储库

you may need to use passphrase-LESS keys for os x server to properly connect to 3rd party hosted git repos. 您可能需要为os x服务器使用passphrase-LESS密钥才能正确连接到第三方托管的git repos。 it cannot connect with there is a passphrase needed. 它无法连接,需要密码。

ssh-keygen -p

it worked for us 它对我们有用

One thing that helped me was to change my submodule URLs to use HTTPS instead of SSH. 帮助我的一件事是将我的子模块URL更改为使用HTTPS而不是SSH。

When doing this, make sure that Xcode is actually using the new URLs. 执行此操作时,请确保Xcode实际上正在使用新URL。 Even though I made the changes and pushed them, Xcode was caching the SSH URLs and using them. 即使我做了更改并推送它们,Xcode也在缓存SSH URL并使用它们。 Remove all your SSH URLS from your server, then also remove them from your client under Preferences->Accounts . 从服务器中删除所有SSH URL,然后在Preferences->Accounts下从客户端删除它们。 Then restart the server and restart Xcode, confirming that the new HTTPS URLs are being used when you create your bot. 然后重新启动服务器并重新启动Xcode,确认在创建机器人时正在使用新的HTTPS URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用于iPhone应用程序分发的Xcode中的协同设计验证失败 - Codesign verification failed in Xcode for iphone app distribution 在Xcode 5 Mavericks Server上创建Bot时被要求提供存储库凭据 - Being asked for Repository Credentials when creating a Bot on Xcode 5 Mavericks Server 在Xcode 5 / Mavericks上为iPad 1开发 - Developing for iPad 1 on Xcode 5/Mavericks Xcode 服务器设置失败 - Xcode Server setup failed Xcode 4.2上的非通配设置中的“应用程序失败的代码签名验证” - “Application failed codesign verification” on non-wildcard provisioning on Xcode 4.2 代码签名错误:应用程序代码签名验证失败Xcode存档 - Code signing Error: Application failed codesign verification Xcode Archive 在Xcode 4.2中的验证期间,应用程序的代码签名验证失败 - Application failed codesign verification during validation in Xcode 4.2 使用.pem格式的公钥在Xcode中进行签名验证 - Signature verification in Xcode using public key in .pem format 小牛队下的可可收据验证测试 - 问题 - Cocoa Receipt Verification testing under Mavericks - issue Xcode错误:无法启动[目录] - 主机字符串无效:'localhost' - Xcode error: failed to launch [directory] — invalid host string: 'localhost'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM