cli2ssh

module
v0.0.0-...-623c833 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT

README

cli2ssh

Turn any CLI program into a SSH server.

Installation

go install github.com/PeronGH/cli2ssh/cmd/cli2ssh@latest

Usage

# Check usage
cli2ssh --help

# Basic example: echo the username
cli2ssh -c 'echo Hello, {{ .User }}.'

# More practical example: serve oterm publicly
cli2ssh -h 0.0.0.0 -e 'OTERM_DATA_DIR=userdata/{{ .User }}' -c $(which oterm)

Use Cases

  • Share a CLI program with someone who doesn't have it installed.
  • Publicly host a TUI program, allowing it to be accessed like a web page.
  • Let me know if you have any other ideas!

## TODO

- [ ] Authentication
- [ ] Add tests
- [ ] Integrate with GitHub Actions

Directories

Path Synopsis
cmd
internal
set

Jump to

Keyboard shortcuts

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