MCPcopy Create free account
hub / github.com/cogentcore/core / CloseSSH

Method CloseSSH

shell/shell.go:165–171  ·  view source on GitHub ↗

CloseSSH closes all open ssh client connections

()

Source from the content-addressed store, hash-verified

163
164// CloseSSH closes all open ssh client connections
165func (sh *Shell) CloseSSH() {
166 sh.SSHActive = ""
167 for _, cl := range sh.SSHClients {
168 cl.Close()
169 }
170 sh.SSHClients = make(map[string]*sshclient.Client)
171}
172
173// ActiveSSH returns the active ssh client
174func (sh *Shell) ActiveSSH() *sshclient.Client {

Callers 2

CoSSHMethod · 0.95
CloseMethod · 0.95

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected