Skip to content

Commit cccbc61

Browse files
authored
Merge pull request #377 from blovett/retry_network_unreachable
Retry with the admin ssh port on network unreachable too.
2 parents 1f1a06b + 2b1ffb6 commit cccbc61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ghe-host-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ set -e
6060
if [ $rc -ne 0 ]; then
6161
case $rc in
6262
255)
63-
if echo "$output" | grep -i "port 22: connection refused\|port 22: no route to host\|ssh_exchange_identification: Connection closed by remote host\|Connection timed out during banner exchange\|port 22: Connection timed out" >/dev/null; then
63+
if echo "$output" | grep -i "port 22: Network is unreachable\|port 22: connection refused\|port 22: no route to host\|ssh_exchange_identification: Connection closed by remote host\|Connection timed out during banner exchange\|port 22: Connection timed out" >/dev/null; then
6464
exec "$(basename $0)" "$hostname:122"
6565
fi
6666

0 commit comments

Comments
 (0)