There are two physical machines in front of me: nixos
and mac
.
Physically typing in a terminal on
nixos
:nixos$ tmux ls 0: 5 windows (created Thu Sep 16 19:21:38 2021) (attached) 1: 1 windows (created Fri Sep 17 00:50:45 2021) 2: 5 windows (created Wed Sep 22 05:37:28 2021) (attached) 4: 1 windows (created Thu Sep 23 21:51:01 2021)
Then physically typing on
mac
:mac$ ssh nixos Last login: Sun Sep 26 13:24:58 2021 from 192.168.0.27 nixos$ tmux ls no server running on /run/user/1000/tmux-1000/default
Is there are a way to attach to the already existing tmux sessions when connecting from a remote machine?