use ssh-keyscan from git

This commit is contained in:
Aleksandr Chebotov
2020-10-27 11:05:36 +03:00
parent acc4e54336
commit 222f3bb86f
4 changed files with 1 additions and 17 deletions

View File

@@ -37,7 +37,7 @@ Choco-Install -PackageName hub
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)
if (Test-IsWin16) {
$env:Path += ";$env:ProgramFiles\OpenSSH-Win64"
$env:Path += ";$env:ProgramFiles\Git\usr\bin\"
}
# Add well-known SSH host keys to ssh_known_hosts

View File

@@ -1,13 +0,0 @@
################################################################################
## 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,7 +245,6 @@
"{{ 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",
@@ -334,7 +333,6 @@
"scripts": [
"{{ template_dir }}/scripts/Installers/Install-WindowsUpdates.ps1",
"{{ template_dir }}/scripts/Installers/Configure-DynamicPort.ps1",
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1",
"{{ template_dir }}/scripts/Installers/Configure-Shell.ps1"
],
"elevated_user": "{{user `install_user`}}",

View File

@@ -331,7 +331,6 @@
"scripts": [
"{{ template_dir }}/scripts/Installers/Install-WindowsUpdates.ps1",
"{{ template_dir }}/scripts/Installers/Configure-DynamicPort.ps1",
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1",
"{{ template_dir }}/scripts/Installers/Configure-Shell.ps1"
],
"elevated_user": "{{user `install_user`}}",