Skip to content
Permalink
Browse files

Merge pull request #3627 from bk2204/ssh-stdin

Pass standard input to ssh
  • Loading branch information...
bk2204 committed Apr 26, 2019
2 parents e538499 + 59ed048 commit fe8f7002c6efb083feadc0a078fa2fbb389127c7
Showing with 2 additions and 0 deletions.
  1. +2 −0 lfshttp/ssh.go
@@ -4,6 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"os"
"os/exec"
"path/filepath"
"regexp"
@@ -87,6 +88,7 @@ func (c *sshAuthClient) Resolve(e Endpoint, method string) (sshAuthResponse, err

// Save stdout and stderr in separate buffers
var outbuf, errbuf bytes.Buffer
cmd.Stdin = os.Stdin
cmd.Stdout = &outbuf
cmd.Stderr = &errbuf

0 comments on commit fe8f700

Please sign in to comment.
You can’t perform that action at this time.