diff --git a/ssh/ssh.go b/ssh/ssh.go index 2d543a2..b4a516b 100644 --- a/ssh/ssh.go +++ b/ssh/ssh.go @@ -120,7 +120,7 @@ func (r *Agent) Add(id *api.Identity, host string) (err error) { path) return } - _, err = f.Write(cmd.Output) + _, err = f.Write(cmd.Output()) if err != nil { err = liberr.Wrap( err,