I don't know if this is supposed to work by default, but it seems like when I try to resume a tmux session I have from one machine or a different one. I am using two different kinds of connection to the tmux session, one from a Cygwin terminal versus another from an Ubuntu VM on the same computer. The sessions that are brought up are two different sessions. If I delete all windows in a session and disconnect from it, a brand new one is created instead of connecting to the existing one in the other method of connection. In both cases I connect via ssh to the same server, then run the tmux
command below. I usually resume my session with this command:
tmux a -d || tmux
EDIT: I am disconnecting either with Ctrl+a Ctrl+d
or simply by a disconnection in the network itself, but I can recover the connection afterwards if I do it with the same system I came from originally. If I list my session from Cygwin I get:
tmux ls
0: 1 windows (created Wed Apr 17 15:49:23 2013) [149x45]
If I list it with the VM I get something different:
tmux ls
0: 19 windows (created Thu Apr 11 09:24:00 2013) [191x35]
Any parameter I am missing?