Xcode - 使用 SSH 身份验证添加存储库时出现身份验证失败错误
Xcode - Authentication failed error when adding repository with SSH auth
我正在尝试通过 Xcode > 设置 > 帐户添加存储库,但我被困在正确的地址上。我们 repo 的地址非常简单:my.domain.com:port/project-name。通过 SSH 密钥进行身份验证。有人可以帮助我了解这里发生了什么吗?请参阅下面的屏幕截图。
顺便说一句 运行 git 克隆 git+ssh://git@my.domain.com:port/project-name 工作正常。
编辑
运行 git 没有克隆 git+ssh//
git clone git@my.domain.cz:2222/project-name
或
git clone git@my.domain.cz:22/project-name
给我同样的错误:
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.
Xcode 只接受 ssh://git@my.domain.cz:2222/project-name
.
在这种情况下,git
协议在某种程度上是多余的。原始 git
工具没有问题,但 Xcode 出于某种原因不喜欢它。
当我使用现有的 ssh 密钥时,它总是失败。
我通过 Xcode 创建了一个新的 ssh 密钥对,并将 public 密钥上传到 git 服务器(在我的例子中是 Phabricator),并且它有效。
我正在尝试通过 Xcode > 设置 > 帐户添加存储库,但我被困在正确的地址上。我们 repo 的地址非常简单:my.domain.com:port/project-name。通过 SSH 密钥进行身份验证。有人可以帮助我了解这里发生了什么吗?请参阅下面的屏幕截图。
顺便说一句 运行 git 克隆 git+ssh://git@my.domain.com:port/project-name 工作正常。
编辑
运行 git 没有克隆 git+ssh//
git clone git@my.domain.cz:2222/project-name
或
git clone git@my.domain.cz:22/project-name
给我同样的错误:
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.
Xcode 只接受 ssh://git@my.domain.cz:2222/project-name
.
在这种情况下,git
协议在某种程度上是多余的。原始 git
工具没有问题,但 Xcode 出于某种原因不喜欢它。
当我使用现有的 ssh 密钥时,它总是失败。 我通过 Xcode 创建了一个新的 ssh 密钥对,并将 public 密钥上传到 git 服务器(在我的例子中是 Phabricator),并且它有效。