Description
Setup
- Which version of Git for Windows are you using? 32-bit or 64-bit? Include the
output ofgit version
as well.
Git portable 2.9.2 64 bit.
$ git --version
git version 2.9.2.windows.1
- Which version of Windows are you running? 32-bit or 64-bit?
Windows 10 64-bit 10586.494
- What options did you set as part of the installation? Or did you choose the
defaults?
Portable install thus defaults.
- Any other interesting things about your environment that might be related
to the issue you're seeing?
Using Pageant and Plink from c:\tools\putty
, git is located at c:\tools\git2
. Private key loaded into Pageant, public key added to Gerrit server. Trying to clone repos from Gerrit via SSH.
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
Bash.
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git clone ssh://[email protected]:29418/admin2.git
- What did you expect to occur after running these commands?
To successfully clone the repo.
Cloning into 'admin2'...
remote: Counting objects: 2, done
remote: Finding sources: 100% (2/2)
remote: Total 2 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (2/2), 209 bytes | 0 bytes/s, done.
Checking connectivity... done.
- What actually happened instead?
Git is asking me to verify the host key fingerprint but I'm unable to do so, it becomes unresponsive. Eventually I press Ctrl+C.
Cloning into 'admin2'...
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 1024 <fingerprint>
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.
Store key in cache? (y/n) y
viktorb@foo013 MINGW64 ~/Documents/git
$ y
bash: y: command not found
viktorb@foo013 MINGW64 ~/Documents/git
$
- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
This is an internal Gerrit server, though I don't think it is limited to this instance, it most likely occurs on every SSH clone where the host key isn't cached.
Workaround: attempt a connection with PuTTY to gerrit.fooworks.com on port 29418 which asks me to accept and cache the host key. After that, I can clone using git as well.
It's most likely just an interface bug where Git doesn't receive user input at the prompt and thus keeps waiting forever.