07 maio 2018

Using tmux to take back remote terminal operations

Everyone get sad when we are using ssh connection and we receive a "broken pipe" message. Multiplexing shell apps may mitigate this problem, the idea is after connect to attach to a shell resuming where exactly it stopped.

On the first connection the command, as following, will create and attach to the created shell:

$ tmux

After disconnected to get back to the earlier created shell:

$ tmux attach -t 0

To list all existing sessions:

$ tmux ls