Skip to content

Instantly share code, notes, and snippets.

View FedericoCeratto's full-sized avatar

Federico Ceratto FedericoCeratto

View GitHub Profile
# ssh-multi
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html
# a script to ssh multiple servers over multiple tmux panes
multimux() {
readarray hosts < "$1"
tmux new-window "ssh $1@${hosts[0]}"
#! /bin/sh
#
# Author: Andreas Olsson <[email protected]>
# Version: @(#)autossh_tunnel.foo 0.1 27-Aug-2008 [email protected]
#
# For each tunnel; make a uniquely named copy of this template.
## SETTINGS
#