mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 07:46:57 +00:00
[WIndows] Fix ssh-keyscan on win16 (#1751)
* fix ssh-keyscan on win16 * minor change
This commit is contained in:
committed by
GitHub
parent
9b09e359e8
commit
791e5997fd
@@ -38,8 +38,11 @@ Choco-Install -PackageName hub
|
||||
|
||||
Add-MachinePathItem "C:\Program Files\Git\bin"
|
||||
|
||||
# Add well-known SSH host keys to ssh_known_hosts
|
||||
if (Test-IsWin16) {
|
||||
$env:Path += ";$env:ProgramFiles\Git\usr\bin\"
|
||||
}
|
||||
|
||||
# Add well-known SSH host keys to ssh_known_hosts
|
||||
ssh-keyscan -t rsa 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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user