ssh

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(f *Spec) (*ssh.Client, error)

Types

type Spec

type Spec struct {
	rs.BaseField `yaml:"-"`

	// User for git ssh service, defaults to `git`
	User string `yaml:"user"`

	// Host of git ssh server e.g. gitlab.com
	Host string `yaml:"host"`

	// Port of ssh service, defaults to `22`
	Port int `yaml:"port"`

	// HostKey is the public key to verify remote host
	HostKey string `yaml:"host_key"`

	// authentication
	PrivateKey string `yaml:"private_key"`
	Password   string `yaml:"password"`
}

func (*Spec) Clone

func (s *Spec) Clone() *Spec

Jump to

Keyboard shortcuts

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