ssh

package
v0.0.0-...-a2ed315 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(target *config.Target) (*ssh.Client, *ssh.Session, error)

Connect establishes a new SSH connection.

func Copy

func Copy(client *ssh.Client, localFile string, remoteFile string)

Copy copies a file on the SSH server or exits the program in case of failure.

func Exec

func Exec(client *ssh.Client, cmd string) []byte

Exec executes a command on an SSH server or exits the program in case of failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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