mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2024-12-22 21:49:22 -05:00
21 lines
227 B
Plaintext
21 lines
227 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -o errexit -o nounset -o pipefail
|
||
|
|
||
|
[[ $# -ge 1 ]] || exit 1
|
||
|
|
||
|
user=root
|
||
|
|
||
|
. hosts.sh
|
||
|
|
||
|
declare -n hosts=hosts_$1
|
||
|
shift
|
||
|
for host in ${hosts[@]}; do
|
||
|
echo $host
|
||
|
echo
|
||
|
|
||
|
ssh $user@$host ss -s
|
||
|
|
||
|
echo
|
||
|
done
|