fix ssh-keyscan Windows Server 2016

This commit is contained in:
Aleksandr Chebotov
2020-10-23 14:30:10 +03:00
parent f0188d1066
commit fc389f0cc0
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
################################################################################
## File: Install-OpenSSH.ps1
## Desc: Install OpenSSH-Win64
################################################################################
Write-Host "Download Latest OpenSSH-Win64 archive"
$url = 'https://api.github.com/repos/PowerShell/Win32-OpenSSH/releases/latest'
$name = 'OpenSSH-Win64.zip'
# Explicitly set type to string since match returns array by default
[string]$opensshLatest = (Invoke-RestMethod -Uri $url).assets.browser_download_url -match $name
$opensshArchivePath = Start-DownloadWithRetry -Url $opensshLatest -Name $name
Write-Host "Expand OpenSSH-Win64 archive"
Extract-7Zip -Path $opensshArchivePath -DestinationPath $env:ProgramFiles

View File

@@ -245,6 +245,7 @@
"{{ template_dir }}/scripts/Installers/Install-Sbt.ps1",
"{{ template_dir }}/scripts/Installers/Install-OpenSSL.ps1",
"{{ template_dir }}/scripts/Installers/Install-Perl.ps1",
"{{ template_dir }}/scripts/Installers/Install-OpenSSH.ps1",
"{{ template_dir }}/scripts/Installers/Install-Git.ps1",
"{{ template_dir }}/scripts/Installers/Install-GitHub-CLI.ps1",
"{{ template_dir }}/scripts/Installers/Install-PHP.ps1",