Documentation
¶
Overview ¶
Package sshutil provides shared SSH server scaffolding used by sshserver and headend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve(ln net.Listener, cfg *ssh.ServerConfig, handler SessionHandler) error
Serve accepts connections on ln and dispatches sessions to handler. Returns nil when ln is closed.
func ServerConfig ¶
func ServerConfig(user, pass string) (*ssh.ServerConfig, error)
ServerConfig creates an ssh.ServerConfig with ed25519 host key and password authentication.
Types ¶
Click to show internal directories.
Click to hide internal directories.