We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wait_for_sshd_start_up.sh
start_sshd.sh
1 parent dc47074 commit 57c0253Copy full SHA for 57c0253
start_sshd.sh
@@ -28,9 +28,10 @@ chmod 600 .test-key
28
mkdir -p "$RUNTIME_DIR/openssh-rs/"
29
30
echo Waiting for sshd to be up
31
-while ! ssh -i .test-key -v -p 2222 -l test-user $HOSTNAME -o StrictHostKeyChecking=no -o UserKnownHostsFile="$RUNTIME_DIR/openssh-rs/known_hosts" whoami; do
32
- sleep 3
33
-done
+timeout 30 ./wait_for_sshd_start_up.sh
+
+# Add the ip to known_hosts file
34
+ssh -i .test-key -v -p 2222 -l test-user $HOSTNAME -o StrictHostKeyChecking=no -o UserKnownHostsFile="$RUNTIME_DIR/openssh-rs/known_hosts" whoami
35
36
# Create sshd_started in runtime directory so that it is auto removed on restart.
37
touch "$RUNTIME_DIR/openssh-rs/sshd_started"
0 commit comments