Versions in this module Expand all Collapse all v0 v0.1.3 Jan 7, 2021 Changes in this version + var G_SSH_CLIENT *ssh.Client + func Init(config *ServerConfig) + func RunCmd(script string) error + func RunCmdErrWithAfterCmd(script string, afterCmd string) + func RunCmdErrWithExit(script string) + func RunCmdErrWithNothing(script string) + func RunCmdGetData(script string) (res string) + func SSHConnect(user, password, host string, port int) (*ssh.Client, error) + type ServerConfig struct + Host string + Password string + Port int + User string