ssh

package
v0.0.0-...-ca671ec Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package ssh provides high-level wrapper of golang.org/x/crypto/ssh

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSH

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

func WithPrivateKeyFile

func WithPrivateKeyFile(user, fname string) (SSH, error)

func (SSH) Output

func (s SSH) Output(ctx context.Context, host, cmd string) ([]byte, error)

Output runs the given command on the remote server. It returns the stdout outputs of the command.

Jump to

Keyboard shortcuts

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