From 9c70ef5026187ee02f194359739d603812c07f42 Mon Sep 17 00:00:00 2001 From: Trey Valenta Date: Thu, 26 Jun 2025 10:48:10 -0700 Subject: [PATCH] [windows] Fix syntax of ssh-keyscan (#12223) Remove extraneous spaces between key types to fetch --- images/windows/scripts/build/Install-Git.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/windows/scripts/build/Install-Git.ps1 b/images/windows/scripts/build/Install-Git.ps1 index 21648cef4..6f0118dd1 100644 --- a/images/windows/scripts/build/Install-Git.ps1 +++ b/images/windows/scripts/build/Install-Git.ps1 @@ -46,7 +46,7 @@ if ($LASTEXITCODE -ne 0) { Add-MachinePathItem "C:\Program Files\Git\bin" # Add well-known SSH host keys to ssh_known_hosts -ssh-keyscan -t rsa, ecdsa, ed25519 github.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts" +ssh-keyscan -t rsa,ecdsa,ed25519 github.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts" ssh-keyscan -t rsa ssh.dev.azure.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts" Invoke-PesterTests -TestFile "Git"