Skip to content

Instantly share code, notes, and snippets.

View astromechza's full-sized avatar
🐙

Ben Meier astromechza

🐙
View GitHub Profile
@astromechza
astromechza / tssh
Last active August 31, 2016 21:53 — forked from sourcesimian/tssh
Light weight MoSH using Tmux and BASH
#! /bin/bash
# usage: tssh <ssh_target> <tmux target> [<ssh args>]
# requires ssh passwordless login to be setup and tmux to be installed on the remote machine
set -eu
# Count the number of args passed through, if there are not enough print the help.
if [[ "$#" < "2" ]]; then
echo "Not enough arguments where passed to the script."
echo "Usage: $0 <ssh_target> <tmux target> [<ssh args>]"