Update template tests.
parent
b179ad3662
commit
557a45abfa
@ -1,3 +1,12 @@
|
|||||||
Match exec "step ssh check-host %h"
|
Match exec "step ssh check-host %h"
|
||||||
ForwardAgent yes
|
ForwardAgent yes
|
||||||
UserKnownHostsFile {{.User.StepPath}}/ssh/known_hosts
|
{{- if .User.User }}
|
||||||
|
User {{.User.User}}
|
||||||
|
{{- end }}
|
||||||
|
{{- 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 }}
|
||||||
|
UserKnownHostsFile {{.User.StepPath}}/ssh/known_hosts
|
||||||
|
ProxyCommand step ssh proxycommand %r %h %p
|
||||||
|
{{- end }}
|
||||||
|
@ -1,2 +1,6 @@
|
|||||||
Host *
|
Host *
|
||||||
Include {{.User.StepPath}}/ssh/config
|
{{- if or .User.GOOS "linux" | eq "windows" }}
|
||||||
|
Include {{ .User.StepPath | replace "\\" "/" | trimPrefix "C:" }}/ssh/config
|
||||||
|
{{- else }}
|
||||||
|
Include {{.User.StepPath}}/ssh/config
|
||||||
|
{{- end }}
|
Loading…
Reference in New Issue