Skip to content

Instantly share code, notes, and snippets.

@hogihung
Last active November 22, 2022 13:05
Show Gist options
  • Save hogihung/02ce8b8c5f0916e77798c348beb3456c to your computer and use it in GitHub Desktop.
Save hogihung/02ce8b8c5f0916e77798c348beb3456c to your computer and use it in GitHub Desktop.
Using Tmuxinator with Tmux to remotely connect to several hosts via ssh using the even vertical pane layout
# ~/.tmuxinator/remote_connect.yml
# more info on tmuxinator: https://github.com/tmuxinator/tmuxinator
name: remote
root: ~/path/to/your_project/dir
windows:
- local: ls -la
- remote:
layout: even-vertical
panes: # :setw synchronize-panes
- server1:
- ssh your_server_name_or_ip_address_here
- server2:
- ssh your_server_name_or_ip_address_here
- server3:
- ssh your_server_name_or_ip_address_here
- server4:
- ssh your_server_name_or_ip_address_here
- server5:
- ssh your_server_name_or_ip_address_here
- server6:
- ssh your_server_name_or_ip_address_here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment