-
-
Notifications
You must be signed in to change notification settings - Fork 906
Example Usage
Shuanglei Tao edited this page Feb 17, 2020
·
12 revisions
ttyd starts web server at port 7681
by default, you can use the -p
option to change it, the command
will be started with arguments
as options. For example, run:
ttyd -p 8080 bash -x
Then open http://localhost:8080 with a browser, you will get a bash shell with debug mode enabled.
More Examples:
- If you want to login with your system accounts on the web browser, run
ttyd login
. - You can even run a none shell command like vim, try:
ttyd vim
, the web browser will show you a vim editor. - Sharing single process with multiple clients:
ttyd tmux new -A -s ttyd vim
, runtmux new -A -s ttyd
to connect to the tmux session from terminal.