()
| 9 | ) |
| 10 | |
| 11 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…