ssh

package
v0.1.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(user, password, host, key string, port int, cipherList []string) (*ssh.Session, error)

func GetDefaultPrivateKeyFile

func GetDefaultPrivateKeyFile() string

func GetDefaultPublicKeyFile

func GetDefaultPublicKeyFile() string

func QuickConnectAndGetRunOutput

func QuickConnectAndGetRunOutput(host, cmd string) ([]byte, error)

func QuickConnectAndRun

func QuickConnectAndRun(host, cmd string) error

func QuickConnectUsingDefaultSSHKey

func QuickConnectUsingDefaultSSHKey(host string) (*ssh.Session, error)

func ScpFileToRemote

func ScpFileToRemote(source, dst, host string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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