connection

package
v3.4.10 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecRemoteCommand

func ExecRemoteCommand(dial *ssh.Client, run string) (string, error)

ExecRemoteCommand takes a ssh client connection and a command to run and executes the command on the specified client. The function returns the Stdout from the client or the Stderr

func GetUserInfo

func GetUserInfo(uri *url.URL) (*url.Userinfo, error)

func ValidateAndConfigure

func ValidateAndConfigure(uri *url.URL, iden string) (*ssh.ClientConfig, error)

ValidateAndConfigure will take a ssh url and an identity key (rsa and the like) and ensure the information given is valid iden iden can be blank to mean no identity key once the function validates the information it creates and returns an ssh.ClientConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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