From 627e01597b58dde17ececdeb178b3eb9925a58c7 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 10 Jul 2016 18:47:53 +0200 Subject: Add speedtest-ssh Signed-off-by: Florian Pritz --- speedtest-ssh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 speedtest-ssh diff --git a/speedtest-ssh b/speedtest-ssh new file mode 100755 index 0000000..9c63d3c --- /dev/null +++ b/speedtest-ssh @@ -0,0 +1,17 @@ +#!/bin/bash + +host=$1 +mode=$2 + +case "$mode" in + down) + ssh -S none "$host" -o Compression=no "cat /dev/zero" | pv >/dev/null + ;; + up) + pv /dev/null" + ;; +*) + echo "usage: ${0##*/} " >&2 + exit 1 + ;; +esac -- cgit v1.2.3-24-g4f1b