Documentation ¶
Index ¶
- func AuditLogArchiver()
- 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 NewAuditLog(user, host string) (*os.File, error)
- func NewSSHClient(server config.Server, sshUser config.SSHUser) (*gossh.Client, *gossh.Client, error)
- func NewTerminal(server config.Server, sshUser config.SSHUser, sess *ssh.Session, ...) error
- func ParseRawCommand(command string) (string, []string, error)
- func ProxyClient(instance config.Server, proxy db.CreateProxyRequest, sshUser config.SSHUser) (*gossh.Client, *gossh.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteSCP ¶
ExecuteSCP ExecuteSCP
func GetClientByPasswd ¶
GetClientByPasswd GetClientByPasswd
func NewSSHClient ¶
func NewSSHClient(server config.Server, sshUser config.SSHUser) (*gossh.Client, *gossh.Client, error)
NewSSHClient NewSSHClient
func NewTerminal ¶
func NewTerminal(server config.Server, sshUser config.SSHUser, sess *ssh.Session, timeout string) error
NewTerminal NewTerminal
func ParseRawCommand ¶
ParseRawCommand ParseRawCommand
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.