Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateKey ¶
PrivateKey sets the server's private key and host key.
Types ¶
type Server ¶
type Server struct { Bind string Uid string SSH ssh.ServerConfig // contains filtered or unexported fields }
Server is an SSH server.
func NewServer ¶
NewServer creates a new test SSH server that runs a shell command upon login (with the current directory set to user). It can be used to test remote SSH communication.
Click to show internal directories.
Click to hide internal directories.