问题
I had created my ssh keys manually from command line and added to my gihub, gitlab accounts. Everything work fine e.g cloning, pushing, pulling etc using command line and source tree client.
The problem is when I try to push using xcode it gives me error saying that Authentication failed because the credentials were rejected
. See screenshot
Please note that Xcode is able to clone the repos using ssh keys but is not able to push(for pushing the changes I either use command line or source tree).
回答1:
Create a key with the following command:
ssh-keygen -t rsa -C "xxx@yyyy.com" -m PEM
Should add -m PEM
来源:https://stackoverflow.com/questions/53879986/xcode-10-1-push-to-github-using-ssh-key