MCPcopy
hub / github.com/henrygd/beszel / startSSHServer

Method startSSHServer

agent/connection_manager.go:215–219  ·  view source on GitHub ↗

startSSHServer starts the SSH server if the agent is currently disconnected.

()

Source from the content-addressed store, hash-verified

213
214// startSSHServer starts the SSH server if the agent is currently disconnected.
215func (c *ConnectionManager) startSSHServer() {
216 if c.State == Disconnected {
217 go c.agent.StartServer(c.serverOptions)
218 }
219}
220
221// closeWebSocket closes the WebSocket connection if it exists.
222func (c *ConnectionManager) closeWebSocket() {

Callers 1

connectMethod · 0.95

Calls 1

StartServerMethod · 0.80

Tested by

no test coverage detected