0

I have been using tmux for maybe 4-5 months and recently started noticing some weird stuff.

  1. tmux ls does not show the full list of active "sessions"
  2. I still can connect to a session even if it does not show up on tmux ls
  3. Some of my sessions started getting indexes in their names.. like name_of_session_3

I use tmux on a remote machine that ssh into. I usually have multiple terminals open in separate tabs on my local machine, but I would not expect any of this to affect the way tmux behave.

What am I doing wrong?


Here is the out put of tmux ls

➜ ~ tmux ls bad*******-1: 1 windows (created Mon Mar 12 15:27:29 2018) [273x129] (group badges_hist) bad*******_fix-9: 1 windows (created Thu Mar 22 11:42:28 2018) [208x54] (group bad*******) (attached) no*******-7: 1 windows (created Wed Mar 21 15:17:33 2018) [273x129] (group *******) not*******s-8: 1 windows (created Wed Mar 21 15:47:01 2018) [208x54] (group noti*******) (attached) pre*******-2: 1 windows (created Tue Mar 13 14:24:33 2018) [273x129] (group pre*******)

I would expect to see another 3-4 sessions on that list.

  • In the text, you use the words "terminal" and "session". Can you clarify what you mean by "terminal"? Do you use the word as equivalent to "session"? Could you show an example of the output of tmux ls and how it is different from what you would expect? – Kusalananda Apr 5 '18 at 21:41
  • went through tmux manual. I should have used "session" in tmux context. provided example tmux ls output as well. – Rotkiv Apr 5 '18 at 21:47
0

So looks like ssh forwarding is the issue?

Tmux captures the environment at initiation. If you are on your desktop with SSH_AUTH_SOCK pointing to A, then you disconnect (C-a,d). Now you SSH to your desktop, the SSH_AUTH_SOCK in this environment will be some value B, you reattach, and you have SSH_AUTH_SOCK still pointing to A.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.