← 返回命令列表

Linux command

gotty 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Share terminal as web

gotty [command]

Share with write permission

gotty -w [bash]

Specify port

gotty -p [8080] [command]

With authentication

gotty -c [user:pass] [command]

Random URL path

gotty --random-url [command]

说明

gotty shares a terminal command as a web application accessible through a browser. It runs a command and exposes it through HTTP, enabling remote terminal access, log viewing, and collaborative debugging. Authentication and TLS are supported for secure deployments. The -w flag enables browser users to send input to the running command.

参数

-w, --permit-write
Allow input from browser.
-p _PORT_, --port _PORT_
Server port.
-c _CRED_, --credential _CRED_
Basic authentication credentials in the form user:pass.
-r, --random-url
Add a random string to the URL path.
-t, --tls
Enable TLS/SSL.
--tls-crt _PATH_
Path to TLS certificate file.
--tls-key _PATH_
Path to TLS key file.
--reconnect
Allow client to reconnect after the connection is closed.
--once
Quit after the first client disconnects.
--config _FILE_
Configuration file path.
--help
Display help information.

FAQ

What is the gotty command used for?

gotty shares a terminal command as a web application accessible through a browser. It runs a command and exposes it through HTTP, enabling remote terminal access, log viewing, and collaborative debugging. Authentication and TLS are supported for secure deployments. The -w flag enables browser users to send input to the running command.

How do I run a basic gotty example?

Run `gotty [command]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -w, --permit-write do in gotty?

Allow input from browser.