If you have a Go language environment, you can install GoTTY with the go get command. However, this command builds a binary file from the latest master branch, which can include unstable or breaking changes. GoTTY requires go1.9 or later. Run gotty with your preferred command as its arguments (e.g. gotty top). By default, GoTTY starts a web server at port 8080. Open the URL on your web browser and you can see the running command as if it were running on your terminal. By default, GoTTY doesn't allow clients to send any keystrokes or commands except terminal window resizing. When you want to permit clients to write input to the TTY, add the -w option. However, accepting input from remote clients is dangerous for most commands. When you need interaction with the TTY for some reasons, consider starting GoTTY with tmux or GNU Screen and run your command on it (see "Sharing with Multiple Clients" section for detail).
Features
- You can install GoTTY with Homebrew as well
- All traffic between the server and clients are NOT encrypted by default
- For additional security, you can use the SSL/TLS client certificate authentication
- GoTTY starts a new process with the given command when a new client connects to the server
- You can use terminal multiplexers for sharing a single process with multiple clients
- You can have the control of your terminal and allow clients to just see your screen