You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Luca Gmail <lu...@gmail.com> on 2006/02/13 10:20:14 UTC

artifact plugin: invlaid private key

Hi all,

I'm using antlib and Maven 2.0.2.

I should like deploy, using wagon-ssh, my artifact to my local repository.
So I created public/private key for the authentication with the server. I
used rsa-2.

 

<target name="test-deploy" depends="initTaskDefs, create-jar" >

......    

    <remoteRepository  id="internal.repository"
url="scp://192.168.25.217/sw/alive/instance/jetty/docroot/repository">

      <authentication username="user01"
privateKey="${user.home}/.ssh/id_rsa.ppk" />

    </remoteRepository>

......

</target>

 

When I execute the task this is what happens:

[artifact:deploy] Deploying to
scp://192.168.25.217/sw/alive/instance/jetty/docroot/repository

[artifact:deploy] Identity: com.jcraft.jsch.JSchException: invaid
privatekey: C:\Documents and Settings\lucarasconi\.ssh\id_rsa.ppk

[artifact:deploy] An error has occurred while processing the Maven artifact
tasks.

[artifact:deploy] Error deploying artifact
'mypackage.cms:GeneratorXML-core:jar': Error deploying artifact:
Authentication failed: Cannot connect. Reason: invaid privatekey:
C:\Documents and Settings\lucarasconi\.ssh\id_rsa.ppk

 

Somebody can help me with this error? Is it a bug?

 

Thank you,

Luca

 


Re: artifact plugin: invlaid private key

Posted by Doug Douglass <dd...@denverdata.com>.
Hi Luca,

Given the name of your private key file, id_rsa.ppk, I presume you used 
putty to generate the key (.ppk = Putty Private Key). Putty SSH2 keys 
are not compatible with openssh clients, they can only be used by the 
putty clients themselves.

Either you need to configure putty as your scp-protocol executable[1], 
or you have to use a private key in openssh format.

FYI, puttygen can be used to convert between the various SSH2 key formats.


[1] http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html

HTH,
Doug

Luca Gmail wrote:
> Hi all,
> 
> I'm using antlib and Maven 2.0.2.
> 
> I should like deploy, using wagon-ssh, my artifact to my local repository.
> So I created public/private key for the authentication with the server. I
> used rsa-2.
> 
>  
> 
> <target name="test-deploy" depends="initTaskDefs, create-jar" >
> 
> ......    
> 
>     <remoteRepository  id="internal.repository"
> url="scp://192.168.25.217/sw/alive/instance/jetty/docroot/repository">
> 
>       <authentication username="user01"
> privateKey="${user.home}/.ssh/id_rsa.ppk" />
> 
>     </remoteRepository>
> 
> ......
> 
> </target>
> 
>  
> 
> When I execute the task this is what happens:
> 
> [artifact:deploy] Deploying to
> scp://192.168.25.217/sw/alive/instance/jetty/docroot/repository
> 
> [artifact:deploy] Identity: com.jcraft.jsch.JSchException: invaid
> privatekey: C:\Documents and Settings\lucarasconi\.ssh\id_rsa.ppk
> 
> [artifact:deploy] An error has occurred while processing the Maven artifact
> tasks.
> 
> [artifact:deploy] Error deploying artifact
> 'mypackage.cms:GeneratorXML-core:jar': Error deploying artifact:
> Authentication failed: Cannot connect. Reason: invaid privatekey:
> C:\Documents and Settings\lucarasconi\.ssh\id_rsa.ppk
> 
>  
> 
> Somebody can help me with this error? Is it a bug?
> 
>  
> 
> Thank you,
> 
> Luca
> 
>  
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> This message has been 'sanitized'.  This means that potentially
> dangerous content has been rewritten or removed.  The following
> log describes which actions were taken.
> 
> Sanitizer (start="1139822389"):
>   Forcing message to be multipart/mixed, to facilitate logging.
>   Writer (pos="3116"):
>     Part (pos="3202"):
>       Part (pos="162"):
>         SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
>           Match (names="unnamed.txt", rule="9"):
>             Enforced policy: accept
> 
> 
> Anomy 0.0.0 : Sanitizer.pm
> $Id: Sanitizer.pm,v 1.82 2004/01/12 18:02:35 bre Exp $


-- 
Norman "Doug" Douglass
Director of Engineering
Denver Data Systems, Inc.
Office: (303) 534-1745
Fax: (303) 534-2745
E-mail: mailto:ddouglass@denverdata.com
Web: http://www.denverdata.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org