10

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

enter image description here

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).

Khurram Shehzad
  • 261
  • 3
  • 12

1 Answers1

10

Create a key with the following command:

ssh-keygen -t rsa -C "xxx@yyyy.com" -m PEM

Should add -m PEM

Ali Motameni
  • 2,567
  • 3
  • 24
  • 34
Yiting Lu
  • 109
  • 4