sshd

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(host string, port int, username string, privKeyFile string, sess *ssh.Session) error

Connect connect server

func CopyID added in v1.2.0

func CopyID(username, host string, port int, passwd, pubKeyFile string) error

CopyID CopyID

func ErrorInfo

func ErrorInfo(err error, sess *ssh.Session)

ErrorInfo ErrorInfo

func GenKey added in v1.2.0

func GenKey(keyFilePath string) (string, string, error)

GenKey gen ssh private and public key

func GetClientByPasswd added in v1.2.0

func GetClientByPasswd(username, host string, port int, passwd string) (*sshclient.Client, error)

GetClientByPasswd GetClientByPasswd

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL