Documentation ¶
Overview ¶
Package sshutil contains helpers for ssh.
Index ¶
Constants ¶
View Source
const ( // Create the key if needed Create = 1 << iota // Save created keys to disk Save // RSA2048 uses RSA keys with 2048 bits RSA2048 )
Variables ¶
This section is empty.
Functions ¶
func CreatePasswordCheck ¶
func CreatePasswordCheck(user string, pass []byte) func(c ssh.ConnMetadata, pass []byte) (*ssh.Permissions, error)
CreatePasswordCheck creates a simple password checking function suitable for PasswordCallback for testing.
func PublicKeyHash ¶
PublicKeyHash produces a human readable hash of a public key.
Types ¶
Click to show internal directories.
Click to hide internal directories.