Xcode 9 - git push over ssh not working

From inside Xcode 9, I am unable to push commited changes to my git repository using ssh. Always an authentication error.

From the command line in Terminal, git push always succeeds so I know my keys are OK.


Any ideas on how to debug this?

With Xcode 9.2, I had the same problem--although I also had problems on the command line. I solved the Xcode and the command line problems by following the git guide on "checking for existing ssh keys", and then based on the results following the links for the subsequent steps.


https://help.github.com/articles/checking-for-existing-ssh-keys/

Selecting the ssk key from that small dialog doesn't work for whatever reason. Going to Preferences, Account, and then adding the ssh key to the github account resolved the issue and now I can push to and pull from github.

Xcode 9 apperantly does not support ssh aliases in remote repo name (at least not in my case).


I had to hardcode my connection in form:

ssh://user_name@server_url:port_number/path/to/repo.git


Oftopic:

Xcode not supporting ssh aliases is stupid as I have to create two connections as when on LAN I ssh over LAN. Typically I just swap ssh aliases and evertyhing works.

Xcode 9 - git push over ssh not working
 
 
Q