ssh

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultProfile = Profile{
	User: "ec2-user",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Default *Profile            `yaml:"default"`
	Mods    map[string]*Profile `yaml:"mods"`
}

type Profile

type Profile struct {
	User     string   `yaml:"user,omitempty"`
	Identity string   `yaml:"identity,omitempty"`
	Tunnel   string   `yaml:"tunnel,omitempty"`
	Tunnels  []string `yaml:"tunnels,omitempty"`
}

func (*Profile) AllTunnels added in v0.3.0

func (this *Profile) AllTunnels() []string

func (*Profile) Clone added in v0.4.0

func (this *Profile) Clone() *Profile

Clone creates a copy of the Profile.

func (*Profile) GetUser added in v0.4.0

func (this *Profile) GetUser() string

func (*Profile) NoTunnels added in v0.4.0

func (this *Profile) NoTunnels() *Profile

NoTunnels creates a clone of the Profile with any tunnels disabled.

func (*Profile) SSHArgs

func (this *Profile) SSHArgs(addr string) (args []string)

func (*Profile) UserAt

func (this *Profile) UserAt(addr string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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