ssh

package
v0.0.0-...-1e85a6b Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair(opts ...func(*KeyPairOption)) ([]byte, []byte, error)

func RunCommandOverSSHSession

func RunCommandOverSSHSession(ctx context.Context, client *ssh.Client, cmd string) error

func StartSSHConnection

func StartSSHConnection(_ context.Context, privateKey []byte, address string, port int) (*ssh.Client, func(), error)

Types

type KeyPairOption

type KeyPairOption struct {
	BitSize int
	Random  io.Reader
}

Jump to

Keyboard shortcuts

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