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

wagon-ssh kills ecdsa entries in known_hosts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.8
    • None
    • wagon-ssh
    • None
    • Ubuntu 12.04

    Description

      I use wagon-ssh in my Android library project:

      build.gradle
      configurations {
          deployerJars
      }
      
      dependencies {
          deployerJars "org.apache.maven.wagon:wagon-ssh:2.8"
          compile fileTree(dir: 'libs', include: ['*.jar'])
      }
      

      which uploads my AAR files over ssh to the specified home directory on my local server:

      build.gradle
      uploadArchives {
          repositories.mavenDeployer {
              configuration = configurations.deployerJars
              repository(url: "scp://" + System.getenv("PRJ_MAVEN_REPO_HOST_NAME")) {
                  authentication(userName: "un", privateKey: System.getenv("PRJ_MAVEN_REPO_KEY_FILE"))
              }
          }
      }
      

      After executing the gradle build I see that known_hosts file on my server, where the build job was running, has been changed and all "ecdsa" entries are killed. As you can imagine other jobs on the server rely on these entries to contact other server.

      I think this is a no-go if a piece of software is removing entries from a file where other components are depend on.

      Is there a way to fix this by any option settings?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              didlich Did
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: