forked from TrueCloudLab/certificates
Update templates.
This commit is contained in:
parent
557a45abfa
commit
f469a6bb38
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ var SSHTemplateData = map[string]string{
|
||||||
//
|
//
|
||||||
// Note: on windows `Include C:\...` is treated as a relative path.
|
// Note: on windows `Include C:\...` is treated as a relative path.
|
||||||
"include.tpl": `Host *
|
"include.tpl": `Host *
|
||||||
{{- if eq .User.GOOS "windows" }}
|
{{- if or .User.GOOS "none" | eq "windows" }}
|
||||||
Include {{ .User.StepPath | replace "\\" "/" | trimPrefix "C:" }}/ssh/config
|
Include {{ .User.StepPath | replace "\\" "/" | trimPrefix "C:" }}/ssh/config
|
||||||
{{- else }}
|
{{- else }}
|
||||||
Include {{.User.StepPath}}/ssh/config
|
Include {{.User.StepPath}}/ssh/config
|
||||||
|
@ -46,7 +46,7 @@ var SSHTemplateData = map[string]string{
|
||||||
{{- if .User.User }}
|
{{- if .User.User }}
|
||||||
User {{.User.User}}
|
User {{.User.User}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq .User.GOOS "windows" }}
|
{{- if or .User.GOOS "none" | eq "windows" }}
|
||||||
UserKnownHostsFile {{.User.StepPath}}\ssh\known_hosts
|
UserKnownHostsFile {{.User.StepPath}}\ssh\known_hosts
|
||||||
ProxyCommand C:\Windows\System32\cmd.exe /c step ssh proxycommand %r %h %p
|
ProxyCommand C:\Windows\System32\cmd.exe /c step ssh proxycommand %r %h %p
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|
Loading…
Reference in a new issue