MCPcopy Index your code
hub / github.com/HoneyLLM/cli2ssh

github.com/HoneyLLM/cli2ssh @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
22 symbols 56 edges 6 files 7 documented · 32%
What it actually does AI analysis from the code graph — generated when you open this
loading…
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!

```bash

TODO

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

Core symbols most depended-on inside this repo

String
called by 7
internal/args/args.go
StringifyPublicKey
called by 2
internal/utils/key.go
GetDefaultHostKeyPath
called by 2
internal/path/path.go
formatTemplate
called by 2
internal/args/args.go
Add
called by 1
internal/set/set.go
Size
called by 1
internal/set/set.go
CreateServer
called by 1
internal/server/server.go
pipeStdio
called by 1
internal/server/server.go

Shape

Function 9
Method 9
Struct 3
TypeAlias 1

Languages

Go100%

Modules by API surface

internal/set/set.go8 symbols
internal/args/args.go8 symbols
internal/server/server.go3 symbols
internal/utils/key.go1 symbols
internal/path/path.go1 symbols
cmd/cli2ssh/main.go1 symbols

For agents

$ claude mcp add cli2ssh \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact