ssh

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadsshKeys

func UploadsshKeys(conn SSHConnection, args UploadsshKeysArgs) (bool, error)

Types

type SSHConnection

type SSHConnection struct {
	Password  string
	UseSSHKey bool
	Debug     bool
	// contains filtered or unexported fields
}

func (SSHConnection) Close

func (c SSHConnection) Close()

func (*SSHConnection) Connect

func (c *SSHConnection) Connect(user string, address string) error

func (SSHConnection) Run

func (c SSHConnection) Run(cmd string) (string, string, error)

func (SSHConnection) RunSudo

func (c SSHConnection) RunSudo(cmd string) (string, string, error)

func (SSHConnection) RunSudoPassword

func (c SSHConnection) RunSudoPassword(cmd string, password string) (string, string, error)

type UploadsshKeysArgs

type UploadsshKeysArgs struct {
	User     string
	Password string
	Group    string
	S3Bucket string
	S3File   string
	S3Region string
	KeysPath string
}

Jump to

Keyboard shortcuts

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