A straightforward SSH server that pipes the io to a bubbletea program per ssh session.
Warning
This tool should be used within a controlled environment. Although it's designed to be secure, we do not recommend using it outside of a controlled setting.
The server listens for incoming connections. To handle these connections, it creates a new pseudo-terminal (PTY), connected to a bubbletea instance and piped back to the client.
Build the tool using go:
go build -o sshell .
Run the server:
./sshell -port 2222 -key-path /path/to/key
Connect to the server:
ssh -p 2222 user@localhost
Option | Description | Default | Required |
---|---|---|---|
port |
The port to listen on. | 2222 | No |
key-path |
The path to the private key to use. | None | No |
key |
The key pem content. | None | No |