Skip to content

Unable to clone ssh-based GIT URIs #61

@atrauzzi

Description

@atrauzzi

Not sure what happened, but up until last week, I was able to clone git repositories via SSH-based URIs in my Windows containers based on this image. 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 just not sure at this point. The only suspicious thing is that if I try to run the mingw based ssh.exe, it prints a blank line and then exits.

cc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions