From f469a6bb385de82ae81cc97c239bbc782c98c3e7 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 26 Nov 2019 18:47:10 -0800 Subject: [PATCH] Update templates. --- pki/templates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pki/templates.go b/pki/templates.go index b78d61e4..e6c1655b 100644 --- a/pki/templates.go +++ b/pki/templates.go @@ -31,7 +31,7 @@ var SSHTemplateData = map[string]string{ // // Note: on windows `Include C:\...` is treated as a relative path. "include.tpl": `Host * -{{- if eq .User.GOOS "windows" }} +{{- if or .User.GOOS "none" | eq "windows" }} Include {{ .User.StepPath | replace "\\" "/" | trimPrefix "C:" }}/ssh/config {{- else }} Include {{.User.StepPath}}/ssh/config @@ -46,7 +46,7 @@ var SSHTemplateData = map[string]string{ {{- if .User.User }} User {{.User.User}} {{- end }} -{{- if eq .User.GOOS "windows" }} +{{- if or .User.GOOS "none" | eq "windows" }} UserKnownHostsFile {{.User.StepPath}}\ssh\known_hosts ProxyCommand C:\Windows\System32\cmd.exe /c step ssh proxycommand %r %h %p {{- else }}