Categorygithub.com/paulstuart/sshclient
modulepackage
0.0.2
Repository: https://github.com/paulstuart/sshclient.git
Documentation: pkg.go.dev

# README

sshclient GoDoc

Simple golang ssh/scp client helpers

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
DialAgent makes a ssh connection with credentials from ssh-agent.
DialConfigSSH will open an ssh session using the given config.
DialKey will open an ssh session using a private key.
DialKeyFile will open an ssh session using an key key stored in keyfile.
DialPassword will open an ssh session using the specified password.
DialSSH will open an ssh session using the specified authentication.
ExecAgent will run a single command using ssh-agent.
ExecPassword will run a single command using the given password.
ExecText will run a single command using the given key.
NewSession will open an ssh session using the provided connection.
Run will run a command in the session.
Server is a fake ssh server for unit testing.
SetWinsize sets the size of the given pty.

# Structs

BashHandler runs a command in bash.
No description provided by the author
Connection allows for multiple commands to be run against an ssh connection.
EchoHandler is the default dummy handler.
MockHandler allows faking expected behavior.
Results comprises the results from running a command via ssh.
ServerOptions control the ssh server behavior.
Winsize stores the Height and Width of a terminal.

# Interfaces

ExecHandler abstracts handling of ssh "exec".
Logger accomodates testing.T as a logger.