ssh

package
v0.0.0-...-f6c0e8d Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SftpConnect

func SftpConnect(sshconnect *ssh.Client) (*sftp.Client, error)

创建scp连接

func SftpSend

func SftpSend(sftpclient *sftp.Client, sfile, dfile string) error

通过sftp连接发送文件

func SshConnect

func SshConnect(HOST, PORT, USER, PWD string) (*ssh.Client, error)

创建ssh连接

func SshRun

func SshRun(sshconnect *ssh.Client, command string) error

单条执行ssh命令

func SshRunFast

func SshRunFast(sshconnect *ssh.Client, cmdline []string) error

批量执行ssh命令

Types

This section is empty.

Jump to

Keyboard shortcuts

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