skip to Main Content

I have a .ssh folder with my RSA keys, private and public, but when I try to do push in Xcode, it ask me to login in github and to get a token access id.

Why is Xcode ignoring my .ssh folder keys? How to configure it to use the .ssh folder keys?

enter image description here

2

Answers


  1. Double-check the remote URL you are using. (you can see it in XCode)

    Asking for a GitHUb login and token suggests you are using an HTTPS one.

    Only an SSH URL ([email protected]:<user>/<repo>) would make sue of your SSH folder content.

    Login or Signup to reply.
  2. I was able to solve this using some information from https://gist.github.com/brennanMKE/8e09593ca4064deab59da807077d8f53. Specifically, the step:

    Add the key to the Keychain with this command.

    ssh-add --apple-use-keychain ~/.ssh/id_github

    Replace ~/.ssh/id_github with the path to your SSH key (in my case, ~/.ssh/id_rsa), enter your passphrase when prompted, and Xcode should start recognizing the key.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search