Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-5014

Git operations fail when using SSH with private key because user input is required to continue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Gathering Impact (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 1.7, 1.8.0.36401, 1.8.1, 1.8.2, 1.8.2.2, 1.8.2.3
    • Fix Version/s: None
    • Component/s: Git, UX
    • Labels:
    • Environment:
      • Standalone Git installation (version 2.6.2.windows.1)
      • Windows 10 build 10586.104
      • SourceTree ≥ 1.7 (may affect older versions too, but only tested in these)
    • Symptom Severity:
      Severity 1 - Critical

      Description

      When a repository is set to use an SSH remote URL, and the authentication is done using a private key, the push process, for example, hangs with this output:

      git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F D:\Temp\s5arqixk.lhh

      git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
      Pushing to git@github.com:<ommitted>.git

      The server's host key is not cached in the registry. You
      have no guarantee that the server is the computer you

      think it is.
      The server's rsa2 key fingerprint is:
      ssh-rsa 2048 ab:<ommitted>:9d

      If you trust this host, enter "y" to add the key to
      PuTTY's cache and carry on connecting.

      If you want to carry on connecting just once, without
      adding the key to the cache, enter "n".

      If you do not trust this host, press Return to abandon the

      connection.

      As this message states, I would need to press y to continue, but I can't. The only way I can push the changes to my repository is through the Terminal, which accepts the command git push and does what it should without any issues.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            d176df56-b676-467e-b34c-112592617bac Deleted Account (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: