iTerm2 as a Tmux client

Published:

If you work a lot with remote machines over SSH, you’ve probably been in this situation, where you needed to open another terminal app tab, just to realize that you need to connect to the remote machine from the start.

Some time ago I’ve learned that you can use iTerm2 to work as a client for tmux sessions on remote machines.

It’s as easy as calling:

ssh my-remote-host.example.com -t tmux -CC

In that setup, if you press Cmd+T, iTerm will create a new tab on a remote machine.

Same with splitting panes with Cmd+D and Shift+Cmd+D

There is also a separate tab in iTerm2 settings related to this tmux integration.

Amazing, isn’t it?

Did you like the blog post?

0