Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20246

SSH Key authentication fails when RFC4716 format Keys used

      Issue Summary

      When using SSH key authentication, a confusing error can appear in the UI or logs if the incorrect SSH key format is used.

      Example Steps to Reproduce

      1. Create an RSA SSH Key Pair using ssh-keygen
        ssh-keygen -t rsa
        
      2. Add the Public Key to your Bitbucket Cloud account
      3. Upload the Private Key to a Linked Repository configuration
      4. Test the repository connection

      Expected Results

      The connection test is successful

      Actual Results

      The connection test fails, and the following exception is thrown in the UI:

      Cannot decode connection params.
      

      Notes

      This occurs when the version of OpenSSH has RFC4716 as the default key format.
      The SSHJ Library that Bamboo uses does not support the SSH2/RFC4716 keys.

      Workaround

      Create the key using PEM format, which RFC4716 replaced. For example:

      ssh-keygen -m PEM -t rsa
      

          Form Name

            [BAM-20246] SSH Key authentication fails when RFC4716 format Keys used

            Gabriel Ribeiro made changes -
            Link New: This issue relates to BAM-21167 [ BAM-21167 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 3083304 ] New: JAC Bug Workflow v3 [ 3386203 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Krystian Brazulewicz made changes -
            Link New: This issue relates to BAM-19764 [ BAM-19764 ]
            Pawel Skierczynski made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            Pawel Skierczynski made changes -
            Assignee New: Pawel Skierczynski [ pskierczynski ]
            Pawel Skierczynski made changes -
            Component/s New: SCP and SSH tasks [ 20391 ]
            Pawel Skierczynski made changes -
            Fix Version/s New: 6.9.0 [ 85198 ]
            Pawel Skierczynski made changes -
            Labels New: bamboo-bugfix-kanban-candidate
            Pawel Skierczynski made changes -
            Occurrence Factor New: 10% [ 12830 ]
            Symptom Severity Original: Severity 2 - Major [ 15831 ] New: Severity 3 - Minor [ 15832 ]
            Status Original: Needs Triage [ 10030 ] New: Open [ 1 ]
            SET Analytics Bot made changes -
            Support reference count New: 1

              pskierczynski Pawel Skierczynski
              ezeidan Ellie Z (they/them)
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: