Documentation ¶
Index ¶
- func RunSSHCommand(host string, port int, account, password string, commands []string) (string, error)
- func RunSSHCommandWithArgs(host string, port int, account, password string, commands []string, ...) (string, error)
- func VerifyLogin(host string, port int, account, password string) (bool, error)
- func VerifyLoginWithArgs(host string, port int, account, password string, clientConfig *ClientConfig) (bool, error)
- type ClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunSSHCommand ¶
func RunSSHCommandWithArgs ¶ added in v0.1.27
func RunSSHCommandWithArgs(host string, port int, account, password string, commands []string, clientConfig *ClientConfig) (string, error)
RunSSHCommandWithArgs @Description: add cipher\ keyExchange\ macs args, support whjz switcher, 202310 @param host @param port @param account @param password @param commands @param ciphers @param keyExchanges @param macs @return string @return error
func VerifyLogin ¶ added in v0.1.27
func VerifyLoginWithArgs ¶ added in v0.1.27
Types ¶
Click to show internal directories.
Click to hide internal directories.