Skip to content

Commit fdb1237

Browse files
authored
fix: ssh: Closing net.Conn after SSH finished its execution (#133)
Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
1 parent ad6554c commit fdb1237

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/plugins/builtin/ssh/ssh.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ func execssh(stepName string, i interface{}, ctx interface{}) (interface{}, inte
157157
if err != nil {
158158
return nil, nil, err
159159
}
160+
defer client.Close()
160161

161162
session, err := client.NewSession()
162163
if err != nil {

0 commit comments

Comments
 (0)