ssh

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(client *ssh.Client, cmd string) (string, string, error)

func RunPTY

func RunPTY(client *ssh.Client, cmd string) error

func RunStream

func RunStream(client *ssh.Client, cmd string) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(host, user string, opts ...Option) *Client

func (*Client) Connect

func (c *Client) Connect() (*ssh.Client, error)

type Option

type Option func(*Client)

func WithInsecure

func WithInsecure() Option

func WithKey

func WithKey(key string) Option

func WithPort

func WithPort(port int) Option

Jump to

Keyboard shortcuts

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