csshm

Cluster SSH for macOS: type once and it goes to many SSH sessions at the same time.

csshm opens one Terminal window per server, tiles them across your monitors and adds a red master window. Whatever you type in the master goes to every server. It is a single binary written in Swift, inspired by csshX and ClusterSSH.

It is not limited to ssh. Any command you want to run side by side across many servers and watch live will do: AWS SSM sessions, docker exec, kubectl exec or whatever else you use to reach a machine.

Six servers tiled above the red master window. A command typed once appears in all of them, then one server is disabled and skipped.

Install

curl -fsSL https://raw.githubusercontent.com/anarchy89/csshm/main/setup.sh | sh

Or with Homebrew:

brew tap anarchy89/tap
brew trust anarchy89/tap
brew install csshm

It needs macOS 13 or later and works with Terminal.app. On Homebrew older than 7 leave out the brew trust line.

Use

csshm web1 web2 web3
csshm --login ubuntu web1 web2 web3              # same user on every server
csshm --ssh_args "-i ~/.ssh/key" web1 web2       # same key on every server
csshm --addresses servers.txt                    # servers from a file, one per line
csshm --screen 1-3 --addresses servers.txt       # spread across monitors 1 to 3

Hosts can also come from another command, such as every EC2 instance that is running:

aws ec2 describe-instances --filters "Name=instance-state-name,Values=running" \
    --query "Reservations[].Instances[].PrivateIpAddress" --output text \
    | tr '\t' '\n' | csshm --login ec2-user

What it does

Read the full guide Source on GitHub Latest release