|
|
|
|
|
by emj
2307 days ago
|
|
When I need to do cluster ssh with tmux I do this or a variant of it: function cluster_ssh() {
# Start a pane for every server
for server in $*; do
tmux split-window ssh $server
done;
# Same input to all panes
tmux setw synchronize-panes on;
# Init pane to background, tile layout
tmux break-pane -s 0 -d
tmux select-layout tiled
}
bash# cluster_ssh server-{01..10}.example.com
EDIT: made it a bit more complete, but you only need split and sync panes IMHO. |
|