You've already forked step-ca-cli
mirror of
https://github.com/smallstep/cli.git
synced 2025-08-07 16:02:54 +03:00
Admin workflow CLI v1
This commit is contained in:
@@ -32,7 +32,7 @@ func proxycommandCommand() cli.Command {
|
||||
Action: command.ActionFunc(proxycommandAction),
|
||||
Usage: "proxy ssh connections according to the host registry",
|
||||
UsageText: `**step ssh proxycommand** <user> <host> <port>
|
||||
[**--provisioner**=<name>] [**--set**=<key=value>] [**--set-file**=<path>]
|
||||
[**--provisioner**=<name>] [**--set**=<key=value>] [**--set-file**=<path>]
|
||||
[**--ca-url**=<uri>] [**--root**=<file>] [**--offline**] [**--ca-config**=<path>]`,
|
||||
Description: `**step ssh proxycommand** looks into the host registry
|
||||
and proxies the ssh connection according to its configuration. This command
|
||||
@@ -207,11 +207,7 @@ func doLoginIfNeeded(ctx *cli.Context, subject string) error {
|
||||
}
|
||||
|
||||
// Add certificate and private key to agent
|
||||
if err := agent.AddCertificate(subject, resp.Certificate.Certificate, priv); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return agent.AddCertificate(subject, resp.Certificate.Certificate, priv)
|
||||
}
|
||||
|
||||
func getBastion(ctx *cli.Context, user, host string) (*api.SSHBastionResponse, error) {
|
||||
|
Reference in New Issue
Block a user