Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateHostKey ¶
func PrivateHostKey() []byte
PrivateHostKey retrieves the private server RSA host key.
func PublicKeyCallback ¶
func PublicKeyCallback(c gossh.ConnMetadata, pubKey gossh.PublicKey) (*gossh.Permissions, error)
PublicKeyCallback is for the server to check whether a public SSH key is authorized ot not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.