Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-467

wagon-ssh: options to configure hostKeyChecking and PreferredAuthentications

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10
    • Fix Version/s: 2.12
    • Component/s: wagon-ssh
    • Labels:
      None
    • Environment:
      Maven 3.3
      Jenkins

      Description

      Hi,
      I'm looking a way to deploy the maven site using scp protocol.
      I found some issues:

      • when I create a Jenkins node the maven process stucks during site:deploy goal because it prompts to me if I want add the destination host key to know_hosts file.
      • also with correct credential in settings.xml it prompts to me for Kerberos username [$USER] and password.

      After a lot of google search the SSH options command to setup should be:

      • StrictHostKeyChecking [ask, no, yes]
      • PreferredAuthentications a mix of [gssapi-with-mic, publickey, password, keyboard-interactive]

      Configure those option into them into .ssh/config file it's hard to manage in many in case of many machine

      Actually there is not way to change those settings in the wagon instance
      For StrictHostKeyChecking could be used the settings.xml

      <servers>
      	<server>
      		<id>docserver</id>
      		<username>xxx</username>
      		<password>password</password>
      		<configuration>
      			<knownHostsProvider>
      				<hostKeyChecking>no</hostKeyChecking>
      			</knownHostsProvider>
      		</configuration>
      	</server>
      </servers>
      

      but it fails because KnownHostsProvider it's an interface and if I specify the implementation of knownHostsProvider

      <knownHostsProvider implementation="org.apache.maven.wagon.providers.ssh.knownhost.FileKnownHostsProvider">
      

      fails because ClassNotFound on IOUtil in super constructor method.

      Instead for PreferredAuthentications it's an plain string into the code so no way to change it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dantran Dan Tran
                Reporter:
                nfalco79 Nikolas Falco
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: