remote

package
v0.0.0-...-358adb9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 9 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