sshos

package
v0.0.0-...-d844e59 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLoader = &Loader{
	Dir:              filepath.Join(home, ".ssh", "config"),
	UserConfig:       filepath.Join(home, ".ssh", "config"),
	UserKnownHosts:   filepath.Join(home, ".ssh", "known_hosts"),
	SystemConfig:     filepath.FromSlash("/etc/ssh/ssh_config"),
	SystemKnownHosts: filepath.FromSlash("/etc/ssh/known_hosts"),
	Identity: []string{
		filepath.Join(home, ".ssh", "id_dsa"),
		filepath.Join(home, ".ssh", "id_ecdsa"),
		filepath.Join(home, ".ssh", "id_ed25519"),
		filepath.Join(home, ".ssh", "id_rsa"),
	},
}

Functions

func NewClient

func NewClient() (*gsh.Client, error)

func UserConfig

func UserConfig(username string) (*os.File, error)

Types

type Loader

type Loader struct {
	Dir              string
	UserConfig       string
	UserKnownHosts   string
	SystemConfig     string
	SystemKnownHosts string
	Identity         []string
	Options          []string
}

func (*Loader) NewClient

func (l *Loader) NewClient() (*gsh.Client, error)

Jump to

Keyboard shortcuts

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