package
module
Version:
v0.0.0-...-d8008ff
Opens a new window with list of versions in this module.
Published: Dec 11, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
¶
sshcmds
Golang run SSH commands with multiple Private Keys
Documentation
¶
Config holds details of each key config
NewConfig creates a new instance of the Config struct
AddKey appends an SSH private key to the list of keys
Auth returns an ssh.Client struct after successfully authenticating with a key.
Cmd runs a single command against a previously authenticated session and returns the output as a Byte buffer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.