LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gotty

Share terminal as a web application

TLDR

Share terminal as web
$ gotty [command]
copy
Share with write permission
$ gotty -w [bash]
copy
Specify port
$ gotty -p [8080] [command]
copy
With authentication
$ gotty -c [user:pass] [command]
copy
Random URL path
$ gotty --random-url [command]
copy

SYNOPSIS

gotty [options] command

DESCRIPTION

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.

PARAMETERS

COMMAND

Command to share.
-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.

CONFIGURATION

~/.gotty

Configuration file for default settings like port, TLS certificates, and credential options.

CAVEATS

Security sensitive with -w flag. Use authentication in production. Firewall considerations.

HISTORY

gotty was created by Iwasaki Yudai to share terminal sessions through web browsers.

SEE ALSO

ttyd(1), tmux(1)

Copied to clipboard
Kai