Update check-host.sh

This commit is contained in:
diablo committed 2026-10-10 01:17:51 +08:00
1 parent ffd9fe5d20
commit c460ee8c5b
1 file changed
+4
+4
View File
@@ -3,7 +3,11 @@ set -euo pipefail
: "${TARGET_HOSTS:?TARGET_HOSTS is not configured}" : "${TARGET_HOSTS:?TARGET_HOSTS is not configured}"
: "${SSH_USER:?SSH_USER is not configured}" : "${SSH_USER:?SSH_USER is not configured}"
echo "SSH directory:"
ls -la ~/.ssh/ 2>/dev/null || true
echo "SSH-related environment variables:"
env | grep -Ei 'ssh|key' | sed 's/=.*/=<set>/'
for host in $TARGET_HOSTS; do for host in $TARGET_HOSTS; do
echo "Connecting to $host..." echo "Connecting to $host..."