Skip to content

Instantly share code, notes, and snippets.

@chris2k20
chris2k20 / ssh-multi.sh
Created May 1, 2020 12:04 — forked from pstray/ssh-multi.sh
Start tmux and ssh to multiple hosts with synchronized input
#! /bin/bash
if [ -z "$1" ]; then
echo "please supply at least one server to connect to" >&2
exit 1
fi
target=multi-ssh-$$
if [ -z "$TMUX" ]; then