Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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