ttyd exposes a TTY on a webpage, with a websocket.
Lets add tmux for multiple viewer and splitted terms.
make images
- Start ssh-agent
- Open a tmux
- Run ttyd with
tmux attach
- reattach the tmux
make images
make run CREDENTIAL=beuha:aussi
You are in a tmux, open http://localhost:7681/ with credentials.
+------+ +-------------+
| tmux +------------+ socket tmux |
+------+ +------+------+
|
+-----------------+ |
| ttyd | |
| +-------------+ | |
| | tmux attach +-+--------+
| +-------------+ | ws
| +----------------------> browser
+-----------------+
You can add keys to the jailed ssh-agent, available in the tmux session
./ssh-add.sh ~/.ssh/id_rsa