Commit bcf69c5b authored by Jean-Francois Rey's avatar Jean-Francois Rey
Browse files

add known_hosts for gitlab-runner

parent fb392960
......@@ -18,3 +18,11 @@ $oldpath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentC
$newPath = "$oldpath;C:\GitLab-Runner\\"
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $newPath
if ( -Not Test-Path -Path $env.USERPROFILE\.ssh ) {
New-Item -Path $env.USERPROFILE -NAME ".ssh" -ItemType "directory"
ssh-keyscan -t ecdsa -H > ~/.ssh/known_hosts
else {
ssh-keyscan -t ecdsa -H >> ~/.ssh/known_hosts
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment