()
| 14 | } |
| 15 | |
| 16 | func ExamplePasswordAuth() { |
| 17 | ssh.ListenAndServe(":2222", nil, |
| 18 | ssh.PasswordAuth(func(ctx ssh.Context, pass string) bool { |
| 19 | return pass == "secret" |
| 20 | }), |
| 21 | ) |
| 22 | } |
| 23 | |
| 24 | func ExampleNoPty() { |
| 25 | ssh.ListenAndServe(":2222", nil, ssh.NoPty()) |
nothing calls this directly
no test coverage detected
searching dependent graphs…