-
Couldn't load subscription status.
- Fork 4
Closed
Description
SSH connection needs to be closed when done. This is currently not the case.
Perhaps refactor connector.go and execute.go
and replace ssh.Dial convenience function call with something else:
c, err := net.DialTimeout(network, addr, timeout)
if err != nil {
return nil, err
}
conn, chans, reqs, err := ssh.NewClientConn(c, addr, config)
if err != nil {
return nil, err
}
// will close the underlying net.Conn
defer conn.Close
client := ssh.NewClient(c, chans, reqs)
Metadata
Metadata
Assignees
Labels
No labels