ssh

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSSHCommand

func RunSSHCommand(host string, port int, account, password string, commands []string) (string, error)

func RunSSHCommandWithCipher added in v0.1.9

func RunSSHCommandWithCipher(host string, port int, account, password string, commands []string, ciphers []string) (string, error)

func SSHAccountVerify

func SSHAccountVerify(host string, port int, account, password string) (bool, error)

func SSHAccountVerifyWithCipher added in v0.1.9

func SSHAccountVerifyWithCipher(host string, port int, account, password string, ciphers []string) (bool, error)

SSHAccountVerify 验证SSH账号密码是否正确

Types

This section is empty.

Jump to

Keyboard shortcuts

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