MCPcopy
hub / github.com/gliderlabs/ssh / main

Function main

_examples/ssh-simple/simple.go:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func main() {
12 ssh.Handle(func(s ssh.Session) {
13 io.WriteString(s, fmt.Sprintf("Hello %s\n", s.User()))
14 })
15
16 log.Println("starting ssh server on port 2222...")
17 log.Fatal(ssh.ListenAndServe(":2222", nil))
18}

Callers

nothing calls this directly

Calls 3

HandleFunction · 0.92
ListenAndServeFunction · 0.92
UserMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…