ssh

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUsername = "zeta"

Variables

View Source
var (
	W = tr.W
)

Functions

func DefaultKnownHosts

func DefaultKnownHosts() (ssh.HostKeyCallback, error)

DefaultKnownHosts returns host key callback from default known hosts path, and error if any.

func DefaultKnownHostsPath

func DefaultKnownHostsPath() (string, error)

DefaultKnownHostsPath returns default user knows hosts file.

func NewTransport

func NewTransport(ctx context.Context, endpoint *transport.Endpoint, operation transport.Operation, verbose bool) (transport.Transport, error)

Types

type Command

type Command struct {
	*ssh.Session
	io.Reader

	DbgPrint func(format string, args ...any)
	// contains filtered or unexported fields
}

func (*Command) Close

func (c *Command) Close() error

func (*Command) LastError

func (c *Command) LastError() error

func (*Command) Setenv

func (c *Command) Setenv(name string, value string) error

func (*Command) Start

func (c *Command) Start(cmd string) error

func (*Command) Wait

func (c *Command) Wait() error

Jump to

Keyboard shortcuts

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