2019-10-15 19:18:29 +00:00
|
|
|
Match exec "step ssh check-host %h"
|
2019-11-27 02:44:43 +00:00
|
|
|
{{- 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 }}
|