Pairing with a Shared Account

Using a shared account is the simplest way to work with another user. In a nutshell, you enable SSH access on the machine that will act as the host, install and configure tmux on that machine, and then create a tmux session there. The second user logs into that machine with the same user account and attaches to the session. By using SSH public keys, you can make the login process somewhat transparent. Let’s walk through the setup. For this example, we’ll use a server called puzzles running Ubuntu that has the SSH daemon installed.

First, create a “tmux” user on the server. This is the user everyone will use to connect to the pairing session. On the remote server, execute this command:

 tmux@puzzles$ ​​adduser ...

Get tmux 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.