最近在 csh 的環境下工作 透過 ssh 連線到 server 並在該 server 上使用 tmux
在閒置一段時間後 發現 ssh 連線會被自動踢掉 並且 tmux 的 session 也跟著消失
如此一來 便失去了使用 tmux 可以保存 working state 的好處
解決的方式是登入到該 server 後 輸入
$ unset autologout
或是在你的 .cshrc 寫入
$ unset autologout
Reference
How to disable automatic logout on Ubuntu?