pkg/helpers/ssh/init_windows.go (12 lines of code) (raw):
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
package ssh
import (
"os"
"path/filepath"
"strings"
)
func init() {
khsource = filepath.Join(os.Getenv("UserProfile"), ".ssh", knownHostFileName)
khpath = filepath.Join(os.Getenv("UserProfile"), ".aks-engine-azurestack", knownHostFileName)
khpath = strings.Replace(khpath, "\\", "/", -1)
copyKnownHosts()
}