[
https://issues.apache.org/jira/browse/WAGON-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov updated WAGON-177:
---------------------------------
Fix Version/s: (was: 1.1)
> Allow use of both password and private key
> ------------------------------------------
>
> Key: WAGON-177
> URL: https://issues.apache.org/jira/browse/WAGON-177
> Project: Maven Wagon
> Issue Type: Improvement
> Components: wagon-ssh
> Reporter: Kenney Westerhof
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)