I'm using tmux on a Fedora 8 server (workplace restriction) to monitor several boxes on a stress rack. I noticed that I can only attach to my detached tmux session
once per shell session. In order to reattach, I must kill the terminal session and start another one, otherwise my attach
command simply hangs (although, Ctrl–b,d detaches from the hung command).
Has anyone seen behavior like this before? Any guidance or pointers to references would be greatly appreciated.
Best Answer
In my Shell's config file (I use zsh, so its in my .zshrc, should work in a .bashrc) I have the following:
Now I can connect many times using PuTTY to a single server and see the same session in all windows (and change one connection to display a different window). I would also like to
Edit
I thought this was working once before, then I just learned that I must have still been in
screen
, so I have fixed this to do separate sessions. I commented, so let me know if you have any questions. Now there is one downside to this, it will choose the smallest size for both windows. That isn't helpful...I am working on finding a fix currently.Edit 2
In order to fix the resizing issue, add the following line to your
.tmux.conf
file