我在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_rsa
和id_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
看到我的服务器密钥?