I have the following configuration in 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>
My SSH key that I am sharing with the Bitbucket server is in:
C:\Users\my-user\.ssh\
Where I have two files: id_rsa
and id_rsa.pub
.
I'm not sure if Maven sees my SSH configuration, because when preparing a release, I get:
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.
How could I test that the Maven configuration does see my server key from id_rsa.pub
?