common

package
Version: v0.0.0-...-1f0a58a Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package common provides the common functionality that cssh and cscp share

Index

Constants

This section is empty.

Variables

View Source
var DebugFlag bool

DebugFlag - Controls debug messages

Functions

func Debug

func Debug(a ...interface{})

Debug - Prints messages to os.Stderr if DebugFlag is set

func Debugf

func Debugf(format string, a ...interface{})

Debugf - Prints messages to os.Stderr if DebugFlag is set

func GetKeyList

func GetKeyList() []string

GetKeyList - Get lists of ssh keys from $HOME/.ssh/config

func ReadConfig

func ReadConfig(host string) []string

ReadConfig - Reads the $HOME/.ssh/config for given host

func SSHLogin

func SSHLogin(child *gexpect.SubProcess, timeout time.Duration, passwords []string) error

SSHLogin - Excecute interactive ssh login

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL