Hello:
I have now changed to use "scpexe", but still unable to do the
deployment. The problem is that I followed instructions to generate ssh
keys from this website: http://cs.smith.edu/FAQ/ssh2.html and I am able
to do "ssh remote host (chiadvsdap73) from localhost and backward
without any issues. I am really puzzled what maven is trying to do here
and there aren't any debugging that I can parse onto build.
Can someone please shed some light on this simple-but-frustrating issue?
Many Thanks.
Ray
========================================================================
========================================================================
================================
Enclosed is the setting file.
My deploy code looks like this:
<target name="distRemoteBinaryRepository" if="deploy.official">
<artifact:install-provider artifactId="wagon-ssh"
version="1.0-alpha-5"/>
<artifact:localRepository id="repo.local.id"
path="${maven.local.repo.dir}"/>
<artifact:deploy file="${dist.artifact.file}">
<pom refid="dist.pom.file.id"/>
<localRepository refid="repo.local.id"/>
<remoteRepository
url="scpexe://chiadvsdap73/datlib/advantage/sig/repository/snapshot">
<authentication username="${adv.repo.remote.user}"
privateKey="/Net/prduser/users/nbs5u2j/.ssh2/id_dsa_2048_a"
passphrase="hitme" />
</remoteRepository>
</artifact:deploy>
</target>
The build log:
[artifact:install-provider] Installing provider:
org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5:runtime
[artifact:deploy] Deploying to
scpexe://chiadvsdap73/datlib/advantage/sig/repository/snapshot
[artifact:deploy] Uploading: magma/magma/5.1.0.028/magma-5.1.0.028.jar
to scpexe://chiadvsdap73/datlib/advantage/sig/repository/snapshot
[artifact:deploy] An error has occurred while processing the Maven
artifact tasks.
[artifact:deploy] Diagnosis:
[artifact:deploy]
[artifact:deploy] Error deploying artifact 'magma:magma:jar': Error
deploying artifact: Error executing command for transfer
[artifact:deploy] Exit code 78 -
*****************************************************
[artifact:deploy] ** **
[artifact:deploy] ** This is a private computer system with access **
[artifact:deploy] ** restricted to those with proper authorization. **
[artifact:deploy] ** If you are not specifically authorized to **
[artifact:deploy] ** access data on this system, disconnect now. **
[artifact:deploy] ** All information and communications on this **
[artifact:deploy] ** system are subject to review, monitoring, and **
[artifact:deploy] ** recording at any time without notice or **
[artifact:deploy] ** permission. Unauthorized use or access may be **
[artifact:deploy] ** subject to prosecution or disciplinary action. **
[artifact:deploy] ** **
[artifact:deploy] *****************************************************
[artifact:deploy]
[artifact:deploy] warning:
/Net/prduser/users/nbs5u2j/.ssh2/id_dsa_2048_a: 4: parsing line failed.
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] warning: Authentication failed.
[artifact:deploy] Disconnected (local); no more authentication methods
available (No further authentication methods available.).
[artifact:deploy] Disconnect reason 14, exit code = 78
[artifact:deploy]
-----Original Message-----
From: Johan Lindquist [mailto:[email protected]]
Sent: Friday, January 23, 2009 3:50 PM
To: Maven Users List
Subject: Re: How to do sftp without getting passwd or connection prompt?
Hi Ray,
I may be well off, but this usually works for me - the only thing
different is that I use the scpexe protocol.
Cheers,
Johan
Tang, Ray wrote:
> Can someone please advise how this can get done without entering
> password or yes?
>
> I am enclosing the settings.xml for reference.
>
> Thanks.
>
> Ray
>
> Here is the output of the logs.
>
> deploy:
> [echo] Deploying foundation to remote
>
sftp://nbs5u2j:2xadv103...@chiadvsdap62/datlib/advantage/sig/repository/
snapshot...
> Warning: Reference repo.local.id has not been set at runtime, but was
> found during build file parsing, attempting to resolve. Future
> versions of Ant may support referencing ids defined in non-executed
> targets.
> [artifact:deploy] Deploying to
> sftp://chiadvsdap62/datlib/advantage/sig/repository/snapshot
> [artifact:deploy] [INFO] Retrieving previous build number from
> sftp://nbs5u2j:2xadv103...@chiadvsdap62/datlib/advantage/sig/repositor
> y/snapshot [artifact:deploy] The authenticity of host 'chiadvsdap62'
> can't be established.
> [artifact:deploy] DSA key fingerprint is
> 6e:18:0c:a0:07:70:94:18:1e:af:10:e5:5a:35:94:96.
> [artifact:deploy] Are you sure you want to continue connecting?
(yes/no):
> yes
> [artifact:deploy]
*****************************************************
> [artifact:deploy] **
**
> [artifact:deploy] ** This is a private computer system with access
**
> [artifact:deploy] ** restricted to those with proper authorization.
**
> [artifact:deploy] ** If you are not specifically authorized to
**
> [artifact:deploy] ** access data on this system, disconnect now. All
**
> [artifact:deploy] ** information and communications on this system
**
> [artifact:deploy] ** are subject to review, monitoring, and
**
> [artifact:deploy] ** recording at any time without notice or
**
> [artifact:deploy] ** permission. Unauthorized use or access may be
**
> [artifact:deploy] ** subject to prosecution or disciplinary action.
**
> [artifact:deploy] **
**
> [artifact:deploy]
> *****************************************************
> [artifact:deploy]
> [artifact:deploy] :
> [artifact:deploy] Password: :
> 2xadv103607
> [artifact:deploy] Password: :
> 2xadv103607
>
>
> ----------------------------------------------------------------------
> --
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
--
you too?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
<settings>
<!--mirrors>
<mirror>
<id>bofa-repo</id>
<name>BofA Repository</name>
<url>http://chiadvsdap73/repository/maven</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors-->
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>webproxy.bankofamerica.com</host>
<port>8080</port>
<username>nbks1sy</username>
<password>me1zeraw</password>
<nonProxyHosts>*.bankofamerica.com</nonProxyHosts>
</proxy>
</proxies>
</settings>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]