Thread stderr through too (#3211)
* Thread stderr through too * Small docs typo
This commit is contained in:
parent
1f45a6c96e
commit
ec9e187ce4
|
@ -316,6 +316,7 @@ func (c *SSHCommand) handleTypeCA() error {
|
|||
cmd := exec.Command("ssh", args...)
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
err = cmd.Run()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to run ssh command")
|
||||
|
@ -381,6 +382,7 @@ func (c *SSHCommand) handleTypeOTP() error {
|
|||
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
err = cmd.Run()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to run ssh command")
|
||||
|
@ -430,6 +432,7 @@ func (c *SSHCommand) handleTypeDynamic() error {
|
|||
cmd := exec.Command("ssh", args...)
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
err = cmd.Run()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to run ssh command")
|
||||
|
|
|
@ -299,7 +299,7 @@ target machines.
|
|||
```
|
||||
|
||||
```text
|
||||
$ vault -field=public_key read ssh-host-signer/config/ca
|
||||
$ vault read -field=public_key ssh-host-signer/config/ca
|
||||
```
|
||||
|
||||
1. Add the resulting public key to the `known_hosts` file with authority.
|
||||
|
|
Loading…
Reference in a new issue