- Ruby 1.9.3 or later
- tmux
coming soon...
git clone https://github.com/yshh/tmux-cssh-rb.git path/to/tmux-cssh-rb
cd path/to/tmux-cssh-rb
gem build tmux-cssh.gemspec
gem install tmux-cssh-*.gem
Write the line below to your Gemfile:
gem 'tmux-cssh', git: 'https://github.com/yshh/tmux-cssh-rb.git'
% tssh -h
Usage: tssh [options]
-l, --login USERNAME
-c, --config FILE
--ssh SSH_COMMAND
--ssh_args SSH_ARGUMENTS
--debug DEBUG_LEVEL
--panes_per_window NUM
tssh
should be executed outside of tmux session.
tssh user@host1 host2 host3
When you type to pane, key strokes are copied to all panes in the window.
Use tmux command set-window-option synchronize-panes
to disable this mode.
You may want to bind a shortcut key to this command (add the line below to your ~/.tmux.conf)
bind-key g setw synchronize-panes
Panes do not close after the ssh session terminates
(using set remain-on-exit
) so that you can see error messages in the case
ssh session terminated unexpectedly by errors such as connection error and
authentication failure.
You can close dead panes with tmux commands:
kill-pane
(closes selected pane; bound toC-b x
by default) orkill-window
(closes all panes in current window; bound toC-b &
by default)
Opening many tmux panes hits some OS limits.
- num of pty
- max open files