diff options
Diffstat (limited to 'ssh-tmux.1')
-rw-r--r-- | ssh-tmux.1 | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -63,12 +63,12 @@ Execute a possibly long-running interactive remote command: $ ssh-tmux example.com "cd project && make && doas make install" .Ed .Pp -A command with local and remote shell expansion: +Connect and attach from another client or after disconnection: .Bd -literal -offset indent -$ ssh-tmux example.com echo $HOST \e$HOST +$ ssh -t example.com "tmux attach-session \e; choose-tree" .Ed .Pp -Detach and re-attach session: +Detach and re-attach a named session: .Bd -literal -offset indent $ ssh-tmux -d -s monitor example.com top $ ssh -t example.com tmux attach-session -t monitor @@ -79,6 +79,11 @@ Move window to another session: $ ssh-tmux -d -s monitor -n top example.com top $ ssh -t example.com "tmux new-session -A -s mysession \e; move-window -s monitor:top" .Ed +.Pp +A command with local and remote shell expansion: +.Bd -literal -offset indent +$ ssh-tmux example.com echo $HOST \e$HOST +.Ed .Sh SEE ALSO .Xr nohup 1 , .Xr ssh 1 , |