ssh

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdentityFile = "iximiuz_labs_user"
)

Variables

This section is empty.

Functions

func GenerateIdentity

func GenerateIdentity(dirpath string) error

func ReadPrivateKey

func ReadPrivateKey(dirpath string) (string, error)

func ReadPublicKey

func ReadPublicKey(dirpath string) (string, error)

func RemoveIdentity

func RemoveIdentity(dirpath string) error

Types

type Session

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

func NewSession

func NewSession(
	conn net.Conn,
	user string,
	sshKeyPath string,
) (*Session, error)

func (*Session) Close

func (s *Session) Close() error

func (*Session) Run

func (s *Session) Run(ctx context.Context, streams labcli.Streams, cmd string) error

Jump to

Keyboard shortcuts

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