From a39148a0afc37f32d9ee42cd561e51b7bc6053d3 Mon Sep 17 00:00:00 2001 From: Russell Jurney Date: Tue, 9 Jul 2013 18:41:06 -0700 Subject: [PATCH] Fixed hanging ssh bug FINALLY --- examples/bin/run_ec2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bin/run_ec2.sh b/examples/bin/run_ec2.sh index 4acdde9cc8d..c66965af512 100755 --- a/examples/bin/run_ec2.sh +++ b/examples/bin/run_ec2.sh @@ -55,7 +55,7 @@ sleep 60 INSTANCE_ADDRESS=`ec2-describe-instances|grep 'INSTANCE'|grep $INSTANCE_ID|cut -f4` echo "Connecting to $INSTANCE_ADDRESS to prepare environment for druid..." scp -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ./ec2/env.sh ubuntu@${INSTANCE_ADDRESS}: -ssh -q -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ubuntu@${INSTANCE_ADDRESS} 'chmod +x ./env.sh;./env.sh' +ssh -q -f -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ubuntu@${INSTANCE_ADDRESS} 'chmod +x ./env.sh;./env.sh' echo "Prepared $INSTANCE_ADDRESS for druid." @@ -70,7 +70,7 @@ fi # Now boot druid parts scp -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ./ec2/run.sh ubuntu@${INSTANCE_ADDRESS}: -ssh -q -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ubuntu@${INSTANCE_ADDRESS} 'chmod +x ./run.sh;./run.sh' +ssh -q -f -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ubuntu@${INSTANCE_ADDRESS} 'chmod +x ./run.sh;./run.sh' echo "Druid booting complete!" echo "ssh -i ~/.ssh/druid-keypair ubuntu@${INSTANCE_ADDRESS} #to connect"