sshd

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyID added in v1.2.0

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

CopyID CopyID

func ErrorInfo

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

ErrorInfo ErrorInfo

func ExecuteSCP added in v1.2.6

func ExecuteSCP(args []string, clientSess *ssh.Session) error

ExecuteSCP ExecuteSCP

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

func Info added in v1.2.2

func Info(msg string, sess *ssh.Session)

Info Info

func NewSSHClient added in v1.2.6

func NewSSHClient(server *config.Server, sshUser *config.SSHUser) (*gossh.Client, error)

NewSSHClient NewSSHClient

func NewTerminal added in v1.2.8

func NewTerminal(server *config.Server, sshUser *config.SSHUser, sess *ssh.Session) error

NewTerminal NewTerminal

func ParseRawCommand added in v1.2.6

func ParseRawCommand(command string) (string, []string, error)

ParseRawCommand ParseRawCommand

Types

This section is empty.

Jump to

Keyboard shortcuts

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