Documentation
¶
Overview ¶
Package sshtest runs an in-process SSH server with an SFTP subsystem for tests, so connection and transfer code can be exercised without Docker or a real host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
User string // defaults to "tester"
// Password enables password auth when non-empty.
Password string
// AuthorizedKeys enables public key auth for these keys.
AuthorizedKeys []ssh.PublicKey
// KeyboardInteractive enables a one-question challenge whose answer is
// Password.
KeyboardInteractive bool
// Root is the SFTP working directory (defaults to a temp dir).
Root string
}
Options configure which authentication methods the server accepts.
Click to show internal directories.
Click to hide internal directories.