Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32876

ssh shell command fails with "Too many authentication failures for ..." on ssh credentials plugin 1.11

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • ssh-credentials-plugin
    • Jenkins ver. 1.625.3.1 (CloudBees Jenkins Enterprise 15.11)
      Java 8
      RHEL 7
      SSH Credentials Plugin 1.11/1.10

      When executing a shell command like ssh to connect to a server (with ssh credentials plugin v1.11), the connection fails with:

      09:36:59 Authorized uses only. All activity may be monitored and reported.
      09:36:59 Permission denied, please try again.
      09:36:59 Permission denied, please try again.
      09:36:59 Received disconnect from xx.xx.xx.xx: 2: Too many authentication failures for xxx
      09:36:59 lost connection
      09:36:59 Build step 'Execute shell' marked build as failure
      09:36:59 [ssh-agent] Stopped.

      After downgrading to version 1.10 everything works fine.

          [JENKINS-32876] ssh shell command fails with "Too many authentication failures for ..." on ssh credentials plugin 1.11

          Most likely you have multiple keys in your credentials and the ssh server is not configured to allow sufficient attempts in order to let the correct key work.

          Stephen Connolly added a comment - Most likely you have multiple keys in your credentials and the ssh server is not configured to allow sufficient attempts in order to let the correct key work.

            stephenconnolly Stephen Connolly
            krancka Kevin Rancka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: