Reputation: 6335
I am trying to add repository via Xcode > Settings > Accounts and I am stuck on the proper address. Address of our repo is quite simple: my.domain.com:port/project-name. Authentication via SSH Keys. Could someone help me to understand what's going on here? See screenshot below.
By the way running git clone git+ssh://[email protected]:port/project-name works fine.
EDIT
Running git clone without git+ssh//
git clone [email protected]:2222/project-name
or
git clone [email protected]:22/project-name
is giving me same error:
ssh: connect to host my.domain.cz port 22: Connection refused
fatal: Could not read from remote repository
Please make sure you have the correct access rights and the repository exists.
Upvotes: 3
Views: 11782
Reputation: 5178
It always fails for me when I use existing ssh keys. I created a new ssh key pair through Xcode and uploaded the public key to the git server (in my case, Phabricator), and it works.
Upvotes: 6
Reputation: 25926
Xcode accepts just ssh://[email protected]:2222/project-name
.
The git
protocol is somehow redundant in this case. Raw git
tools don't have a problem with it, but Xcode does not like it for some reason.
Upvotes: 5