Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经从命令行手动创建了我的 ssh 密钥并添加到我的 gihub、gitlab 帐户中。一切正常,例如使用命令行和源树客户端进行克隆、推送、拉取等。
问题是当我尝试使用 xcode 推送时,它给了我错误提示Authentication failed because the credentials were rejected。看截图
Authentication failed because the credentials were rejected
请注意,Xcode 能够使用 ssh 密钥克隆存储库,但无法推送(为了推送更改,我使用命令行或源代码树)。
Create a key with the following command:
ssh-keygen -t rsa -C "xxx@yyyy.com" -m PEM
Should add -m PEM
-m PEM