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

Private Key authentication is no longer working with wagon-ssh-2.6

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.10
    • Component/s: wagon-ssh
    • Labels:
      None
    • Environment:
      Windows, Maven 3.0.4, Java 7 64-bit

      Description

      I have to provide the wagon-ssh dependency to the maven-site-plugin in order to upload the site via scp. Authentication for the scp is done via an SSH key.

      Version 2.5 works fine, but when I upgrade to version 2.6, I am now getting a Password prompt, and then a Connection Refused. (The Private Key should negate a password prompt.)

      With version 2.6, I get BUILD FAILURE:

      [INFO] --- maven-site-plugin:3.3:deploy (default-deploy) @ project ---
       Using private key: C:\Users\BuildAgent\.ssh\id_rsa
       Password for buildagent@mvnsitehost: scp://mvnsitehost/opt/maven/sites/project/3.4-SNAPSHOT/ - Session: Connection refused
       scp://mvnsitehost/opt/maven/sites/project/3.4-SNAPSHOT/ - Session: Disconnecting  
       scp://mvnsitehost/opt/maven/sites/project/3.4-SNAPSHOT/ - Session: Disconnected
       [INFO] ------------------------------------------------------------------------
       [INFO] BUILD FAILURE
      

      With version 2.5, I get BUILD SUCCESS:

       [INFO] --- maven-site-plugin:3.3:deploy (default-deploy) @ project ---
       Using private key: C:\Users\BuildAgent\.ssh\id_rsa
       scp://mvnsitehost/opt/maven/sites/project/3.4-SNAPSHOT/ - Session: Opened  
       [INFO] Pushing D:\BuildAgent\projects\Project\Build_Snapshot\target\site
       [INFO]    >>> to scp://mvnsitehost/opt/maven/sites/project/3.4-SNAPSHOT/./
       Executing command: mkdir -p "/opt/maven/sites/project/3.4-SNAPSHOT/./"
       Executing command: mkdir -p "/opt/maven/sites/project/3.4-SNAPSHOT/."
       Executing command: scp -t "/opt/maven/sites/project/3.4-SNAPSHOT/./wagon4279752042048724778.zip"
       Uploading: ./wagon4279752042048724778.zip to scp://mvnsitehost/opt/maven/sites/project/3.4-SNAPSHOT/
       
       ##############################################################################
       Transfer finished. 316495 bytes copied in 0.031 seconds
       Executing command: cd "/opt/maven/sites/project/3.4-SNAPSHOT/./"; unzip -q -o "wagon4279752042048724778.zip"; rm -f "wagon4279752042048724778.zip"
       Executing command: chmod -Rf g+w,a+rX /opt/maven/sites/project/3.4-SNAPSHOT/
       scp://mvnsitehost/opt/maven/sites/project/3.4-SNAPSHOT/ - Session: Disconnecting  
       scp://mvnsitehost/opt/maven/sites/project/3.4-SNAPSHOT/ - Session: Disconnected
       [INFO] ------------------------------------------------------------------------
       [INFO] BUILD SUCCESS
      

      So, clearly the new behavior is the Connection Refused:

       Password for buildagent@mvnsitehost: scp://mvnsitehost/opt/maven/sites/project/3.4-SNAPSHOT/ - Session: Connection refused
      

      Could version 2.6 have broken the private key logic?

        Attachments

        1. maven-wagon-ssh-WAGON-413.patch
          3 kB
          Thomas Strecker

          Activity

            People

            • Assignee:
              dantran Dan Tran
              Reporter:
              awhitford Anthony Whitford
            • Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: