I've never been able to get the combination of ssh authentication key,
with the corresponding pasphrase in the maven settings.xml file and
the default code signing key and its passphrase to the point where I
can set off a deploy and walk away from it.  When I was doing sdo
releases I sat there with my p.a.o login password in my paste buffer
and pasted the password for every login request caused by ab artifact
being scp-ed up.

Now that I'm trying to deploy the sca modules that isnt practical so I
need to get it right.  Can anyone help me please.

Here's the relevant stanza in my settings.xml

                <server>
                        <id>me.people</id>
                        <username>kelvingoodson</username>
                        <privateKey>c:\Dev\sshKeyForPAO.ppk</privateKey>
                        <passphrase>***deleted***</passphrase>
                        <directoryPermissions>775</directoryPermissions>
                        <filePermissions>664</filePermissions>
                </server>

and heres the command I'm running

mvn 
-DaltDeploymentRepository=me.people::default::scp://people.apache.org/hom/public_html/sca-java/2.0-M5/RC1/maven
verify gpg:sign install:install deploy:deploy
-Dgpg.passphrase=***deleted***


I have in my env ...
GNUPGHOME=c:\Dev\gpg\conf

and the result of gpg  --list-keys is

C:\Releasing\2.xm5\tags\sca-java-2.0-M5\modules>gpg --list-keys
c:/Dev/gpg/conf\pubring.gpg
---------------------------
pub   2048R/71A5225A 2010-05-27
uid                  Kelvin Goodson (Code Signing Key 2)
<[email protected]>
sub   2048R/3F48BF74 2010-05-27


when executing the command I see

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Authentication failed: Cannot
connect. Reason: invalid privatekey: c:\Dev\sshKeyForPAO.ppk

[INFO] ------------------------------------------------------------------------


but this is the key I register with pageant when using putty to ssh to p.a.o

Any clues?

Kelvin

Reply via email to