miyagi-check.sh aktualisiert
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ esac
|
|||||||
|
|
||||||
check_ssh_connection() {
|
check_ssh_connection() {
|
||||||
local host=$1
|
local host=$1
|
||||||
LOG "🔌 Prüfe SSH-Verbindung zu $host ..."
|
LOG "Prüfe SSH-Verbindung zu $host ..."
|
||||||
if ssh -p "$SSHPORT" -o BatchMode=yes -o ConnectTimeout=5 "$host" "echo OK" 2>/dev/null | grep -q OK; then
|
if ssh -p "$SSHPORT" -o BatchMode=yes -o ConnectTimeout=5 "$host" "echo OK" 2>/dev/null | grep -q OK; then
|
||||||
LOG " SSH-Verbindung zu $host erfolgreich."
|
LOG " SSH-Verbindung zu $host erfolgreich."
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user