Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-4346

Sourcetree fails to authenticate to Bitbucket with git and ssh using yubikey

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 2.3.2, 2.4
    • Git
    • None
    • macOS Sierra 10.12.1
      Sourcetree 2.3.2 and 2.4
      OpenSSH_7.2p2, LibreSSL 2.4.1
      gpg (GnuPG/MacGPG2) 2.0.30 with libgcrypt 1.6.6
      git version 2.10.2 and 2.11.0

    • Severity 2 - Major

    Description

      Hello,

      I recently generated a new pair of keys to be used with my Yubikey for SSH logins. I successfully added the ssh public key to Bitbucket and it is correctly installed on my system (ie visible from ssh-add).

      When I use the git command line everything works fine: for every remote git command to Bitbucket (even from a terminal launched from Sourcetree), macOS asks me the pin to properly unlock my Yubikey (where the private key is securely stored) and the git command ends with success.

      Unfortunately, when I try the very same remote command through Sourcetree GUI, it fails. From the log I see that Sourcetree\git is trying to directly unlock the private key without asking for the pin (in fact, macOS's pin dialog is never shown).

      I suspect this error occurs with every external token card for SSH.
      Could you please investigate this issue and make sure that Sourcetree properly works with an external token card?

      Thanks for your help.

      Best Regards,

      Nicholas

      References:
      http://florin.myip.org/blog/easy-multifactor-authentication-ssh-using-yubikey-neo-tokens
      https://www.isi.edu/~calvin/yubikeyssh.htm

      Note: initially reported to Atalssian Service Desk (code: STSP-5478).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              atlassian_gu2hogh8ru atlassian_gu2hogh8ru
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: