在Xcode 7中使用SSH身份验证添加GitHub存储库会导致身份验证错误 [英] Adding a GitHub repository in Xcode 7 using SSH authentication gives an authentication error

查看:176
本文介绍了在Xcode 7中使用SSH身份验证添加GitHub存储库会导致身份验证错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Xcode 7中设置一个用于集成测试的Bot。作为设置的一部分,我使用 Xcode>首选项>帐户>添加存储库... 向项目中添加远程存储库,但失败并显示消息身份验证失败





GitHub正在命令行中使用这个SSH密钥,为什么Xcode 7无法正常工作?

解决方案

在考虑到这是Xcode 7错误后,由于



我生成了新的SSH密钥并上传了它们,并且我的Xcode 7机器人可以正常使用SSH。


I'm trying to set up a Bot in Xcode 7 for integration testing. As part of setting this up I am adding a remote repository to the project using Xcode > Preferences > Accounts > Add Repository... but it fails with the message Authentication failed:

GitHub is working at the command line using this SSH key, why is Xcode 7 not working?

解决方案

After thinking that this was an Xcode 7 bug, because of posts like this one I finally found that the problem was actually caused by GitHub.

GitHub implemented third party access restrictions for organizations and teams which meant that any SSH keys generated before February 2014 would no longer work for new apps. Look for the section in your organization's settings pages:

I generated new SSH keys and uploaded them and my Xcode 7 bots are working fine with SSH.

这篇关于在Xcode 7中使用SSH身份验证添加GitHub存储库会导致身份验证错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆