diff options
-rw-r--r-- | README.md | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -6,6 +6,20 @@ session on a specified host. The intended purpose is to execute long-running interactive remote commands with the ability to re-connect. -## Install +## Usage + +The following command logs into the OpenSSH host `example.com`, creates and +attaches to a new Tmux session named `make`, and builds a project. + + $ ssh-tmux -s make example.com "cd project && make && sudo make install" + +When you detach or disconnect, or simply want to watch from another client, you +can re-connect and re-attach as follows: + + $ ssh -t example.com tmux attach-session -t make + +See the manual page for more examples. + +## Installation Run `make install` as root to install the `ssh-tmux` utility and man page. |