ssh

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSH

type SSH struct {
	Host string
	Key  string
	Port string
	User string
	// contains filtered or unexported fields
}

SSH stores required SSH configuration.

func NewSSH

func NewSSH(host string, port string, user string, keyPath string) (*SSH, error)

NewSSH return a SSH struct.

func (*SSH) CMD

func (s *SSH) CMD(cmd string) error

CMD executes shell commands over SSH connection.

Jump to

Keyboard shortcuts

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