ssh

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToHost

func ConnectToHost(host *Host, timeout time.Duration) (*ssh.Client, error)

func RunCommand

func RunCommand(h *Host, command string, timeout time.Duration) ([]byte, error)

func RunCommandWithOpenSSH

func RunCommandWithOpenSSH(h *Host, command string) ([]byte, error)

Types

type Host

type Host struct {
	User     string
	Port     int
	Hostname string
}

func ParseHostString added in v0.1.1

func ParseHostString(s string) *Host

func (*Host) String

func (h *Host) String() string

Jump to

Keyboard shortcuts

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