remote

package
v0.0.0-...-b86a180 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicKeyFile

func PublicKeyFile(file string) (ssh.AuthMethod, error)

PublicKeyFile read manual private key file from $HOME/.nusactl/hosts.yaml

func SSHAgent

func SSHAgent() ssh.AuthMethod

SSHAgent read ssh agent's Host

Types

type SSHClient

type SSHClient struct {
	Config *ssh.ClientConfig
	Host   string
	Port   int
}

func (*SSHClient) RunRemoteCommand

func (client *SSHClient) RunRemoteCommand(command string) (bash.Out, error)

RunRemoteCommand on VM Participant

Jump to

Keyboard shortcuts

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