ssh

package
v0.0.0-...-f39a356 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: GPL-2.0, GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(creds Creds, addr string) (result *ssh.Session, err error)

func Rsync

func Rsync(user string, key []byte, addr, src, dst string, excludes ...string) (err error)

func Run

func Run(creds Creds, addr, cmd string) (err error)

func TarCopy

func TarCopy(creds Creds, addr, src, dst string, excludes ...string) (err error)

Types

type Creds

type Creds struct {
	// contains filtered or unexported fields
}

func ParseCreds

func ParseCreds(user string, b []byte) (result Creds, err error)

func (Creds) Key

func (self Creds) Key(i int) (key ssh.PublicKey, err error)

func (Creds) Sign

func (self Creds) Sign(i int, rand io.Reader, data []byte) (sig []byte, err error)

Jump to

Keyboard shortcuts

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