ssh

package
v0.0.0-...-23e27bb Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

README

ssh

Usage

local ssh = require("ssh")
session, err = ssh.auth{host = 'localhost', user = 'spigell', key = '/home/spigell/.ssh/keys/spigell.key'}
command = session:execute{command = "echo true"}
print(command.output)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(L *lua.LState) int

func Copy

func Copy(L *lua.LState) int

func Execute

func Execute(L *lua.LState) int

func Loader

func Loader(L *lua.LState) int

Loader is the module loader function.

func Preload

func Preload(L *lua.LState)

Preload adds ssh to the given Lua state's package.preload table. After it has been preloaded, it can be loaded using require:

local ssh = require("ssh")

Types

This section is empty.

Jump to

Keyboard shortcuts

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