Fix known_host path.

This commit is contained in:
Mariano Cano 2019-10-15 11:41:35 -07:00 committed by max furman
parent 4f06f3901e
commit e0bfbc4b62

View file

@ -35,7 +35,7 @@ var sshTemplateData = map[string]string{
// and references the step known_hosts file // and references the step known_hosts file
"config.tpl": `Match exec "step ssh check-host %h" "config.tpl": `Match exec "step ssh check-host %h"
ForwardAgent yes ForwardAgent yes
UserKnownHostsFile {{.User.StepPath}}/config/ssh/known_hosts`, UserKnownHostsFile {{.User.StepPath}}/ssh/known_hosts`,
// known_hosts.tpl authorizes the ssh hosts key // known_hosts.tpl authorizes the ssh hosts key
"known_hosts.tpl": `@cert-authority * {{.Step.SSH.HostKey.Type}} {{.Step.SSH.HostKey.Marshal | toString | b64enc}} "known_hosts.tpl": `@cert-authority * {{.Step.SSH.HostKey.Type}} {{.Step.SSH.HostKey.Marshal | toString | b64enc}}