Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultipleFixedHostKeys ¶
func MultipleFixedHostKeys(keys []stdSSH.PublicKey) stdSSH.HostKeyCallback
MultipleFixedHostKeys is a HostKeyCallback that checks multiple host keys
Types ¶
type Session ¶
Session is a wrapper of ssh.Client to make calls easier
func NewSessionWithKey ¶
func NewSessionWithKey(fs afero.Fs, host string, port int, user string, keysPath string, hostKeys []string) (*Session, error)
NewSessionWithKey creates a new session using a private key as authentication
Click to show internal directories.
Click to hide internal directories.