forked from smallstep/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssh.go
33 lines (27 loc) 路 747 Bytes
/
ssh.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package ssh
import (
"github.com/smallstep/cli/command"
"github.com/urfave/cli"
)
// init creates and registers the ssh command
func init() {
cmd := cli.Command{
Name: "ssh",
Usage: "create and manage ssh certificates",
UsageText: "step ssh <subcommand> [arguments] [global-flags] [subcommand-flags]",
Description: `**step ssh** command group provides facilities to sign SSH certificates.
## EXAMPLES
Generate a new SSH key pair and user certificate:
'''
$ step ssh certificate mariano@work id_ecdsa
'''
Generate a new SSH key pair and host certificate:
'''
$ step ssh certificate --host internal.example.com ssh_host_ecdsa_key
'''`,
Subcommands: cli.Commands{
certificateCommand(),
},
}
command.Register(cmd)
}