ssh

package
v1.16.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: BSD-4-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoAuthSucceed = errgo.Newf("No authentication method has succeeded")
)

Functions

func Connect

func Connect(opts ConnectOpts) (*ssh.Client, ssh.Signer, error)

func ConnectToSSHServer

func ConnectToSSHServer(opts ConnectSSHOpts) (*ssh.Client, ssh.Signer, error)

func ConnectToSSHServerWithKey

func ConnectToSSHServerWithKey(host string, key ssh.Signer) (*ssh.Client, error)

Types

type ConnectOpts

type ConnectOpts struct {
	Host     string
	Identity string
}

type ConnectSSHOpts

type ConnectSSHOpts struct {
	Host string
	Keys []ssh.Signer
}

Jump to

Keyboard shortcuts

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