2

I'm using the Tmux integrating with ITerm2, which can create a tab in ITerm 2 for each window created by Tmux.

But somehow this doesn't make much sense for the usual SSH scenario, where we first SSH to a remote host and work with multiple windows through Tmux.

I want to have multiple tabs in ITerm 2, sharing one SSH connection, and in one Tmux sesson. Is it possible?

erch
  • 5,030

2 Answers2

4

You have to install tmux 1.8 or newer on remote host. Then run tmux -CC in SSH session of this host and iTerm2 will attach to tmux running in this session.

0

I don't think this is possible. tmux communicates through a socket file that the remote end of the ssh session wouldn't be able to see. While other types of data can be tunneled through ssh, I'm not sure you can do this. I work in the same way you do, but I just use the tmux native windows in one tab.

Chris W.
  • 1,249