First of all, thanks for trying to help :)
Yes, I'm certain tha the private key is located at
"<user_home>/.ssh/identity". I could even configure my ssh-agent.
The error message display by 'mvn deploy -e' is:
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from ssh-repository
Identity: com.jcraft.jsch.JSchException: invaid privatekey:
/home/bpfurtado/.ssh/identity
[WARNING] repository metadata for: 'snapshot
com.mycompany.app:my-app:1.0-SNAPSHOT' could not be retrieved from
repository: ssh-repository due to an error: Authentication failed: Cannot
connect. Reason: invaid privatekey: /home/bpfurtado/.ssh/identity
[INFO] Repository 'ssh-repository' will be blacklisted
Identity: com.jcraft.jsch.JSchException: invaid privatekey:
/home/bpfurtado/.ssh/identity
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Error deploying artifact: Authentication failed: Cannot connect.
Reason: invaid privatekey: /home/bpfurtado/.ssh/identity
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
artifact: Authentication failed: Cannot connect. Reason: invaid privatekey:
/home/bpfurtado/.ssh/identity
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:472)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying
artifact: Authentication failed: Cannot connect. Reason: invaid privatekey:
/home/bpfurtado/.ssh/identity
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java
:143)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:415)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:531)
... 16 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
Error deploying artifact: Authentication failed: Cannot connect. Reason:
invaid privatekey: /home/bpfurtado/.ssh/identity
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy
(DefaultArtifactDeployer.java:91)
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java
:131)
... 18 more
Caused by: org.apache.maven.wagon.TransferFailedException: Authentication
failed: Cannot connect. Reason: invaid privatekey:
/home/bpfurtado/.ssh/identity
at
org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(
DefaultWagonManager.java:211)
at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact
(DefaultWagonManager.java:109)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy
(DefaultArtifactDeployer.java:77)
... 19 more
Caused by: org.apache.maven.wagon.authentication.AuthenticationException:
Cannot connect. Reason: invaid privatekey: /home/bpfurtado/.ssh/identity
at
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(
AbstractSshWagon.java:156)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java
:143)
at
org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(
DefaultWagonManager.java:178)
... 21 more
Caused by: com.jcraft.jsch.JSchException: invaid privatekey:
/home/bpfurtado/.ssh/identity
at com.jcraft.jsch.IdentityFile.<init>(Unknown Source)
at com.jcraft.jsch.JSch.addIdentity(Unknown Source)
at
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(
AbstractSshWagon.java:150)
... 23 more
On 3/22/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
>
> Ok. So, outside of Maven, you can ssh using that username and
> passphrase. And you're certain that the private key is located at
> "<user_home>/.ssh/identity"? Normally it is "<user_home>/.ssh/id_dsa"
> or "<user_home>/.ssh/id_rsa". Finally, could you go ahead and send
> the error message you get?
>
> -Stephen
>
> On 3/22/06, Bruno Patini Furtado <[EMAIL PROTECTED]> wrote:
> > The settings.xml has the real values. My mistake in using different
> > notations.
> >
> > On 3/21/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> > >
> > > Where you have $user_name and $usr_home do you have in your actual
> > > settings.xml the real values? Wasn't clear since you used
> > > <my_server_name> later to represent a value actually replaced in your
> > > files...
> > >
> > > -Stephen
> > >
> > > On 3/21/06, Bruno Patini Furtado <[EMAIL PROTECTED]> wrote:
> > > > Hi folks,
> > > > I'm trying to deploy a artifact to a local intranet repository using
> > > SCP, I
> > > > can establish a ssh session using my pass phrase as expected, but
> I'm
> > > having
> > > > to success in configuring maven to make it.
> > > >
> > > > My settings.xml servers tag goes like this:
> > > > <server>
> > > > <id>ssh-repository</id>
> > > > <username>$user_name</username>
> > > > <privateKey>$usr_home/.ssh/identity</privateKey>
> > > > <passphrase>####</passphrase>
> > > > </server>
> > > >
> > > > My pom.xml distributionManagement tag:
> > > > <distributionManagement>
> > > > <repository>
> > > > <id>ssh-repository</id>
> > > > <url>scp://<my_server_name>/<my_maven_repository_dir></url>
> > > > </repository>
> > > > </distributionManagement>
> > > >
> > > > I'm not using putty, which I've read has a key format issue and a
> key
> > > > converter.
> > > > I've looked a lot at the mailing list archives and in the maven
> > > > documentation site.
> > > > Any help in any page will be most appreciated :)
> > > >
> > > >
> > > > --
> > > > "Minds are like parachutes, they work best when open."
> > > >
> > > > Bruno Patini Furtado
> > > > Software Developer
> > > > webpage: www.bpfurtado.net
> > > > software development blog: http://bpfurtado.livejournal.com
> > > >
> > > >
> > >
> > >
> > > --
> > > Stephen Duncan Jr
> > > www.stephenduncanjr.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > "Minds are like parachutes, they work best when open."
> >
> > Bruno Patini Furtado
> > Software Developer
> > webpage: www.bpfurtado.net
> > blog: http://bpfurtado.livejournal.com
> >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
"Minds are like parachutes, they work best when open."
Bruno Patini Furtado
Software Developer
webpage: http://bpfurtado.net
software development blog: http://bpfurtado.livejournal.com