• Stars
    star
    220
  • Rank 176,438 (Top 4 %)
  • Language
    Shell
  • License
    MIT License
  • Created about 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ClusterSSH with tmux -- mirror of https://gitlab.com/peikk0/tmux-cssh

tmux-cssh

Spawns multiple synchronized SSH sessions inside a tmux session.

Think Cluster SSH except with only one terminal window and without the ugly Tk GUI.

Requirements

Installation

Just copy tmux-cssh somewhere in your $PATH.

You might want to add a keybinding in your .tmux.conf for toggling panes synchronization:

bind-key = set-window-option synchronize-panes

This example assigns the = key.

Usage

% tmux-cssh -h
Usage: tmux-cssh [options] host [host ...]

Spawns multiple synchronized SSH sessions inside a tmux session.

Options:
  -h                  Show help
  -n <name>           Name of the tmux session or window (default: cssh)
  -o <ssh args>       Additional SSH arguments
  -c                  Use the current tmux session and just spawn a new window instead

% tmux-cssh web{1..4}

% tmux-cssh -o '-p 2222 -l my_user' web{1..4}

Contributing

Please open issues and submit merge requests in GitLab.

License

MIT

Handmade with love in Wellington, New Zealand.