ssh

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSH

type SSH struct {
	Connected bool
	Config    *SSHConfig
	Client    *ssh.ClientConn
}

func NewSSH

func NewSSH(host, port, privateKeyPath string) *SSH

func (*SSH) Connect

func (s *SSH) Connect()

func (*SSH) Run

func (s *SSH) Run(command string) string

type SSHConfig

type SSHConfig struct {
	User           string
	Host           string
	Port           string
	PrivateKeyPath string
}

Jump to

Keyboard shortcuts

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