sshcmd

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 5 Imported by: 1

README

sshcmd

sshcmd is a golang library that allows the user to execute a CLI command over the ssh protocol and retrieve its output.

Example

logs, err := sshcmd.RemoteRun(User, IPAddress, PrivateKeyPath, "cat "+LogLocation)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoteRun

func RemoteRun(user, ip, privateKeyFilePath, command string) (string, error)

RemoteRun runs a command on a remote server and returns its output

Types

This section is empty.

Jump to

Keyboard shortcuts

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