Windows 确保Maven看到SSH密钥

Windows 确保Maven看到SSH密钥,windows,git,maven,ssh,Windows,Git,Maven,Ssh,我在Maven中有以下配置: <scm> <connection>scm:git:ssh://git@my-repo.com:7999/my-project.git</connection> <developerConnection>scm:git:ssh://git@my-repo.com:7999/wrap/my-project.git</developerConnection> <tag>HEA

我在Maven中有以下配置:

<scm>
    <connection>scm:git:ssh://git@my-repo.com:7999/my-project.git</connection>
    <developerConnection>scm:git:ssh://git@my-repo.com:7999/wrap/my-project.git</developerConnection>
    <tag>HEAD</tag>
</scm>
其中我有两个文件:
id\u rsa
id\u rsa.pub

我不确定Maven是否看到了我的SSH配置,因为在准备发布时,我得到:

Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] Permission denied (publickey).
[ERROR] fatal: Could not read from remote repository.

我如何测试Maven配置是否从
id\u rsa.pub
中看到我的服务器密钥?

您是否尝试过从命令行执行此操作?它工作了吗,你能分享输出吗?如果我尝试从命令行
git pull
,我会被要求输入密码3次(据我所知,这很奇怪,因为
ssh
连接不应该要求输入密码)。然后,我发现
致命:无法从远程存储库读取
。我看到你在使用Windows,你使用Git bash吗?如果是这样的话,这个链接有用吗:这个链接可能有用:您试过从命令行执行它吗?它工作了吗,你能分享输出吗?如果我尝试从命令行
git pull
,我会被要求输入密码3次(据我所知,这很奇怪,因为
ssh
连接不应该要求输入密码)。然后,我发现
致命:无法从远程存储库读取
。我看到你在使用Windows,你使用Git bash吗?如果是,此链接是否有用:此链接可能有用:
Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] Permission denied (publickey).
[ERROR] fatal: Could not read from remote repository.