Documentation ¶
Index ¶
- func CopyID(username, host string, port int, passwd, pubKeyFile string) ([]byte, error)
- func ErrorInfo(err error, sess *ssh.Session)
- func ExecuteSCP(args []string, clientSess *ssh.Session) error
- func GenKey(keyFilePath string) (string, string, error)
- func GetClientByPasswd(username, host string, port int, passwd string) (*sshclient.Client, error)
- func Info(msg string, sess *ssh.Session)
- func NewSSHClient(server *config.Server, sshUser *config.SSHUser) (*gossh.Client, error)
- func NewTerminal(server *config.Server, sshUser *config.SSHUser, sess *ssh.Session) error
- func ParseRawCommand(command string) (string, []string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteSCP ¶ added in v1.2.6
ExecuteSCP ExecuteSCP
func GetClientByPasswd ¶ added in v1.2.0
GetClientByPasswd GetClientByPasswd
func NewSSHClient ¶ added in v1.2.6
NewSSHClient NewSSHClient
func NewTerminal ¶ added in v1.2.8
NewTerminal NewTerminal
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.