Cross posting from here: microsoft/dotnet-framework-docker#61
Not sure what happened, but up until last week, I was able to clone git repositories via SSH-based URIs in my Windows containers. Now, suddenly without warning, when I go to clone - even a public repository, I get this error:
C:\>git clone git@github.com:atrauzzi/praxis.git
git clone git@github.com:atrauzzi/praxis.git
Cloning into 'praxis'...
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Here's a simple Dockerfile that can be used to reproduce the issue:
FROM microsoft/dotnet-framework:4.7.1-windowsservercore-1709
SHELL ["powershell"]
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
RUN choco install --yes git
RUN refreshenv
I'm not sure at this point what might be the issue - whether it's Windows or git. The only suspicious thing is that if I try to run the mingw based ssh.exe, it prints a blank line and then exits. My gut is telling me something about the SSH support in git for Windows is having a hard time?
Cross posting from here: microsoft/dotnet-framework-docker#61
Not sure what happened, but up until last week, I was able to clone git repositories via SSH-based URIs in my Windows containers. Now, suddenly without warning, when I go to clone - even a public repository, I get this error:
Here's a simple
Dockerfilethat can be used to reproduce the issue:I'm not sure at this point what might be the issue - whether it's Windows or git. The only suspicious thing is that if I try to run the mingw based
ssh.exe, it prints a blank line and then exits. My gut is telling me something about the SSH support in git for Windows is having a hard time?