Xcode - Authentication failed error when adding repository with SSH auth
<p>I am trying to add repository via Xcode &gt; Settings &gt; 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.</p>
<p>By the way running git clone git+ssh://git@my.domain.com:port/project-name works fine.</p>
<p><a href="https://i.stack.imgur.com/813wg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/813wg.png" alt="enter image description here" /></a></p>
<p><strong>EDIT</strong></p>
<p>Running git clone without git+ssh//</p>
<pre><code>git clone git@my.domain.cz:2222/project-name
</code></pre>
<p>or</p>
<pre><code>git clone git@my.domain.cz:22/project-name
</code></pre>
<p>is giving me same error:</p>
<blockquote>
<p>ssh: connect to host my.domain.cz port 22: Connection refused</p>
<p>fatal: Could not read from remote repository</p>
<p>Please make sure you have the correct access rights and the repository exists.</p>
</blockquote>