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

Unable to connect to slave via ssh

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      • My Jenkins exists on Amazon EC2 engine.
      •  I'm trying to add ubuntu slave via ssh.
      • While creating an instance, a <filename>.pem file is generated for storing .ssh keys which is a private key. No separate pub ssh key is there. 
      • I can ssh directly using terminal from my master to slave and vice versa using that key file
        ssh -i "/home/ubuntu/.ssh/scarlet.pem" ec2-user@ec2-52-66-241-52.ap-south-1.compute.amazonaws.com
        ssh i "/home/ec2user/.ssh/scarlet.pem" ubuntu@ec2-52-66-103-201.ap-south-1.compute.amazonaws.com

        But when I try to configure my slave via any of the ssh method, it gives me error.

      • How I've configured (one of the method)?
        • I've saved slave machine credentials as "ssh key username with private key"
        • Launch method: Launch agents via SSH
        • Hostname: slave machine private ip address, as it is the hostname.
        • Host Key Verification Strategy: Manually trusted key Verification Strategy
      • If I try "Manually provided key verification strategy", it gives me bug. see (bug-screenshot attached).

      Note:

      • I cannot regenerate ssh keys as I'll not be able to access my machines again. 
      • I cannot use credentials as username/password as either there is no password or I'm not that much linux expert. They only method offered in amazon.aws seems to be the ssh key (.pem ssh key file)
      • I've tried everything whatever mentioned in other jenkins tickets for same issue or on internet, but my issue is not getting resolved.

      Please see attachment for log details.

      I'm literally blocked right now, need assistance asap.

        Attachments

        1. bug-screenshot.JPG
          bug-screenshot.JPG
          118 kB
        2. slave.log
          2 kB
        3. slave.log.1
          2 kB
        4. slave.log.10
          1 kB
        5. slave.log.2
          2 kB
        6. slave.log.3
          2 kB
        7. slave.log.4
          2 kB
        8. slave.log.5
          2 kB
        9. slave.log.6
          2 kB
        10. slave.log.7
          2 kB
        11. slave.log.8
          2 kB
        12. slave.log.9
          1 kB
        13. slave-screenshot.JPG
          slave-screenshot.JPG
          89 kB

          Issue Links

            Activity

              People

              Assignee:
              jvz Matt Sicker
              Reporter:
              nicks9188 Nicketa Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: