MCPcopy Create free account
hub / github.com/HoneyLLM/cli2ssh / CreateServerOptions

Struct CreateServerOptions

internal/server/server.go:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20)
21
22type CreateServerOptions struct {
23 // Required
24
25 // Always use `exec.CommandContext` to create the command.
26 CommandProvider func(s ssh.Session) *exec.Cmd
27
28 // Optional
29 Host string
30 Port string
31 HostKeyPath string
32
33 PublicKeyAuth func(ctx ssh.Context, key ssh.PublicKey) bool
34 PasswordAuth func(ctx ssh.Context, password string) bool
35}
36
37func CreateServer(opts CreateServerOptions) (*ssh.Server, error) {
38 // Required options

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected