mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-17 15:29:21 +00:00
Add quotes in configuration paths.
This commit is contained in:
parent
9caadbb341
commit
05cda81215
@ -32,9 +32,9 @@ 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 or .User.GOOS "none" | eq "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"
|
||||||
{{- end }}`,
|
{{- end }}`,
|
||||||
|
|
||||||
// config.tpl is the step ssh config file, it includes the Match rule and
|
// config.tpl is the step ssh config file, it includes the Match rule and
|
||||||
@ -47,10 +47,10 @@ var SSHTemplateData = map[string]string{
|
|||||||
User {{.User.User}}
|
User {{.User.User}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .User.GOOS "none" | eq "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 }}
|
||||||
UserKnownHostsFile {{.User.StepPath}}/ssh/known_hosts
|
UserKnownHostsFile "{{.User.StepPath}}/ssh/known_hosts"
|
||||||
ProxyCommand step ssh proxycommand %r %h %p
|
ProxyCommand step ssh proxycommand %r %h %p
|
||||||
{{- end }}
|
{{- end }}
|
||||||
`,
|
`,
|
||||||
|
Loading…
Reference in New Issue
Block a user