Thread stderr through too (#3211)

* Thread stderr through too

* Small docs typo
This commit is contained in:
Seth Vargo 2017-08-21 17:23:29 -04:00 committed by Vishal Nayak
parent 1f45a6c96e
commit ec9e187ce4
2 changed files with 4 additions and 1 deletions

View file

@ -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")

View file

@ -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.