blob: ce636680b31cb7e8b0f9f4f0fd3fe40fe8ec90a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash -x
where="$1"
test -z "$where" && echo >&2 "no host specified" && exit 1
while true; do
ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no \
-q "$where" exit &>/dev/null && exit 0
done
exit 1
|