Skip to content

Commit

Permalink
Thread stderr through too (#3211)
Browse files Browse the repository at this point in the history
* Thread stderr through too

* Small docs typo
  • Loading branch information
sethvargo authored and vishalnayak committed Aug 21, 2017
1 parent 9eacae5 commit be57fd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions command/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit be57fd0

Please sign in to comment.