Documentation
¶
Index ¶
- func AddKnownHost(host string, key ssh.PublicKey) error
- func AppendAuthorizedKeys(line []byte) error
- func AuthorizedKeysFile() (string, error)
- func CreateSSHDir() error
- func KnownHostsFile() (string, error)
- func NewClient(nodename string, opts ...funcopt.O) (*ssh.Client, error)
- func WithPort(port uint16) funcopt.O
- func WithPrivateKeyFiles(privateKeyFiles ...string) funcopt.O
- func WithTimeout(timeout time.Duration) funcopt.O
- func WithUser(user string) funcopt.O
- type AuthorizedKeysMap
- type KnownHostsMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddKnownHost ¶
AddKnownHost callers must care for thread safety
func AppendAuthorizedKeys ¶
func AuthorizedKeysFile ¶
func CreateSSHDir ¶
func CreateSSHDir() error
func KnownHostsFile ¶
func WithPrivateKeyFiles ¶
WithPrivateKeyFiles specifies private key files to be added at the start of the default list of private key files.
func WithTimeout ¶
WithTimeout sets the ssh ClientConfig.Timeout (default is 10 * time.Second)
Types ¶
type AuthorizedKeysMap ¶
func GetAuthorizedKeysMap ¶
func GetAuthorizedKeysMap() (AuthorizedKeysMap, error)
type KnownHostsMap ¶
func GetKnownHostsMap ¶
func GetKnownHostsMap() (KnownHostsMap, error)
Click to show internal directories.
Click to hide internal directories.