Skip to content

Commit d3e446f

Browse files
lloydchangCoordHealthhalifrieritushcmdPardaz Banu Mohammad
committed
fix: check_ssh_ready
Co-authored-by: Haley Lifrieri <haleylifrieri@college.harvard.edu> Co-authored-by: Haley Lifrieri <halifrieri@gmail.com> Co-authored-by: Muturi David <muturidavid854@gmail.com> Co-authored-by: Pardaz Banu Mohammad <pardaz.banu786@gmail.com> Co-authored-by: Pardaz Banu Mohammad <pardazbanu1999@gmail.com> Co-authored-by: Toluwalope Olateru-Olagbeg <wole2003@gmail.com>
1 parent 09cca48 commit d3e446f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codespaces_create_and_start_containers.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ start_container() {
4848
# Function to check if SSH is ready on a container
4949
check_ssh_ready() {
5050
local container_ip="$1"
51-
timeout 1 ssh -o BatchMode=yes -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@${container_ip} exit 2>/dev/null
51+
# Removed BatchMode=yes and added sshpass for password authentication
52+
sshpass -p 'aim8Du7h' timeout 1 ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@${container_ip} exit 2>/dev/null
5253
return $?
5354
}
5455

0 commit comments

Comments
 (0)