确保Maven看到SSH密钥

时间:2017-03-17 12:10:41

标签: 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>HEAD</tag>
</scm>

我与Bitbucket服务器共享的SSH密钥位于:

C:\Users\my-user\.ssh\

我有两个文件:id_rsaid_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_rsa.pub看到我的服务器密钥?

0 个答案:

没有答案