2 ms·
> When debugging a complex issue on your servers, you might like to share an SSH session with someone who is not in the same room. tmux is perfect for this for
by madars 6y ago
> When debugging a complex issue on your servers, you might like to share an SSH session with someone who is not in the same room. tmux is perfect for this for terminal sharing! Here are the steps:
> [..]
> Both of you will need to SSH to the machine using the same account.
If you want, it is very easy to do view-only tmux sessions with no third-party tools required. That is, you start your tmux specifying a socket (tmux -S ...), and then have a dedicated ssh user which references it (tmux -S ... attach -r, where -r is for read-only) as sshd's ForceCommand (a 10-liner https://gist.github.com/madars/e6b957ea508be1dcd9044fd2c70969ac https://gist.github.com/madars/e6b957ea508be1dcd9044fd2c7096...)
- mnw21cam 6y agoOr you can execute a shell inside ytalk.