gossh

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialTCP

func DialTCP(addr string, clientConfig *ssh.ClientConfig) (*ssh.Client, error)

DialTCP connects to the remote SSH server

func NewSession

func NewSession(addr string, clientConfig *ssh.ClientConfig) (ssh.Conn, *ssh.Session, error)

NewSession connects to the remote SSH server, returns error if it couldn't establish a session to the SSH server

func PasswordKey

func PasswordKey(username, password string) *ssh.ClientConfig

PasswordKey returns the ssh.ClientConfig based on specified username and password.

func PrivateKey

func PrivateKey(username, path string) (*ssh.ClientConfig, error)

PrivateKey loads a public key from "path" and returns a SSH ClientConfig to authenticate with the server.

func PrivateKeyPassphrase

func PrivateKeyPassphrase(username, passphrase, path string) (*ssh.ClientConfig, error)

PrivateKeyPassphrase returns the ssh.ClientConfig based on specified username, passphrase and path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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