Skip to content

Commit

Permalink
Update ssh config default template attributes
Browse files Browse the repository at this point in the history
- remove unused user.Authority
- use parameter instead of hard coded string for template version key
  • Loading branch information
dopey committed Nov 13, 2021
1 parent 8c4adde commit bd543ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/ssh/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/smallstep/certificates/api"
"github.com/smallstep/certificates/authority/provisioner"
"github.com/smallstep/certificates/ca"
"github.com/smallstep/certificates/templates"
"github.com/smallstep/cli/crypto/sshutil"
"github.com/smallstep/cli/flags"
"github.com/smallstep/cli/ui"
Expand Down Expand Up @@ -213,9 +214,8 @@ func configAction(ctx *cli.Context) (recoverErr error) {
"GOOS": runtime.GOOS,
"StepPath": step.Path(),
"StepBasePath": step.BasePath(),
"Authority": authority,
"Version": "v2",
}
data[templates.SSHTemplateVersionKey] = "v2"
if step.Contexts().Enabled() {
data["Context"] = step.Contexts().GetCurrent().Name
}
Expand Down

0 comments on commit bd543ba

Please sign in to comment.