aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/client.go b/lib/ssh/client.go
index 3063153c..ea624066 100644
--- a/lib/ssh/client.go
+++ b/lib/ssh/client.go
@@ -112,7 +112,7 @@ func NewClientFromConfig(cfg *config.Section) (cl *Client, err error) {
// Execute a command on remote server.
func (cl *Client) Execute(cmd string) (err error) {
- sess, err := cl.NewSession()
+ sess, err := cl.Client.NewSession()
if err != nil {
return fmt.Errorf("ssh: NewSession: " + err.Error())
}