sshutil

package module
v0.0.0-...-4560b66 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2013 License: MIT Imports: 17 Imported by: 1

README

sshutil

SSH Utilities

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(hostname string) (*ssh.ClientConn, error)

Dial a hostname, intelligently using your local ssh settings to do so

func GetLocalDigest

func GetLocalDigest(conn *ssh.ClientConn, folder string) (map[string]string, error)

func GetRemoteDigest

func GetRemoteDigest(conn *ssh.ClientConn, folder string) (map[string]string, error)

func Run

func Run(conn *ssh.ClientConn, cmd string) (string, error)

func SendFile

func SendFile(conn *ssh.ClientConn, local, remote string) error

func SyncFolder

func SyncFolder(conn *ssh.ClientConn, local, remote string) error

Types

type KeyChain

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

func GetKeyChain

func GetKeyChain(privateKeyFile string) (*KeyChain, error)

func (*KeyChain) Key

func (k *KeyChain) Key(i int) (ssh.PublicKey, error)

func (*KeyChain) LoadPEM

func (k *KeyChain) LoadPEM(file string) error

func (*KeyChain) Sign

func (k *KeyChain) 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