mirror of
https://github.com/Smaug123/PulumiConfig
synced 2025-10-05 00:28:39 +00:00
16 lines
441 B
Bash
16 lines
441 B
Bash
#!/bin/sh
|
|
|
|
ADDRESS=$1
|
|
PRIVATE_KEY=$2
|
|
|
|
while ! /usr/bin/ssh "root@$ADDRESS" -o ConnectTimeout=5 -o IdentityFile="$PRIVATE_KEY" -o StrictHostKeyChecking=off echo hello ; do
|
|
echo "Sleeping for 5s"
|
|
sleep 5
|
|
done
|
|
|
|
# For some reason /usr/bin/ssh can get in at this point even though Pulumi cannot :(
|
|
# error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
|
|
sleep 10
|
|
|
|
date
|