shelli

package module
v0.0.0-...-999ad96 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2016 License: BSD-2-Clause-Views Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(host string, config ConfigFunc) (*ssh.Client, error)

NewClient returns a new SSH client for the given host and configuration.

func NewPty

func NewPty(client *ssh.Client, inCh <-chan []byte, quit <-chan struct{}) (<-chan []byte, <-chan []byte, <-chan error)

NewPty creates a new SSH session to the client using inCh as stdin, and quiting on a receive to quit. Returns stdout, stderr channels and error channel

Types

type ConfigFunc

type ConfigFunc func() (*ssh.ClientConfig, error)

ConfigFunc is just a function signature for retrieving ssh configuration functions.

func ConfigForCert

func ConfigForCert(user, cert string) ConfigFunc

ConfigForCert returns a configuration func for the given username and certificate.

func ConfigForPassword

func ConfigForPassword(user, password string) ConfigFunc

ConfigForPassword returns a configuration func for the given username and password.

Jump to

Keyboard shortcuts

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