PowerShell / PowerShell/Win32-OpenSSH

Cloning a Git repository using ssh.exe hangs

Open
#389 11 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0 - Backlog Issue-Bug
Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

When I try to use your version of ssh.exe with Git to clone a repository, it hanges.

Steps to Reproduce

  • Install Git for Windows (I'm on 2.10.1 on Windows 7, bot x64)
  • Open a new PowerShell prompt (so git.exe is in your PATH)
  • Set the GIT_SSH environment variable to point to Win32-OpenSSH's ssh.exe: `Set-Item env:GIT_SSH "C:\Program Files\Open-SSH-Win64\ssh.exe"
  • Clone a Git repository using SSH: git clone ssh://HOSTNAME/REPO REPO.
  • Note that the git.exe command hangs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the hang with Git for Windows 2.10.1 on Windows 7, using the documented PowerShell GIT_SSH setting and clone command. Check whether the behavior is specific to Win32-OpenSSH's ssh.exe, then trace the SSH invocation and compare it with Git's expected process behavior. Done means the clone completes without hanging and the regression is covered by a reproducible test.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, powershell
Domain
cli, networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.