[
http://jira.codehaus.org/browse/WAGON-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter updated WAGON-177:
-------------------------------
Fix Version/s: 1.x
> Allow use of both password and private key
> ------------------------------------------
>
> Key: WAGON-177
> URL: http://jira.codehaus.org/browse/WAGON-177
> Project: Maven Wagon
> Issue Type: Improvement
> Components: wagon-ssh
> Reporter: Kenney Westerhof
> Fix For: 1.x
>
>
> We have corporate m2 repository over http with Digest authentication.
> We specify the <username> and <password> for that repository so the
> ArtifactManager can download
> artifacts.
> We also use scp to deploy artifacts to that same repository. We use the same
> username, but
> a different password and/or a private key file.
> AbstractSshWagon's logic is that it only uses the private key file if there's
> no password specified.
> It should first try the private key file, and optionally use the password to
> decode it if it's password-protected,
> then try that private key authentication, and if that fails, try the
> password/passphrase authentications.
> Ssh allows for multiple authentication methods to be tried before failure.
> Even better would be to allow different usernames for the same repository,
> depending on if it's
> used for deployment or artifact resolution (but that's a maven-core issue).
> Right now we have to use two different repository id's and double
> configuration for both normal and snapshot repositories, when in fact it's
> the same repository with 2 different access methods.
> (most of this issue is more appropriately placed in maven-core somewhere, but
> the password/privatekey
> issue solves part of the problem).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira