From 597520ae201513a51901c8e50f3815aff737d3d5 Mon Sep 17 00:00:00 2001 From: Matei Zaharia Date: Mon, 10 Dec 2012 15:12:06 -0800 Subject: Make sure the SSH key we copy to EC2 has permissions 600. SPARK-539 #resolve --- ec2/spark_ec2.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ec2/spark_ec2.py') diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py index 2ab11dbd34..32a896e5a4 100755 --- a/ec2/spark_ec2.py +++ b/ec2/spark_ec2.py @@ -361,6 +361,7 @@ def setup_cluster(conn, master_nodes, slave_nodes, zoo_nodes, opts, deploy_ssh_k print "Copying SSH key %s to master..." % opts.identity_file ssh(master, opts, 'mkdir -p ~/.ssh') scp(master, opts, opts.identity_file, '~/.ssh/id_rsa') + ssh(master, opts, 'chmod 600 ~/.ssh/id_rsa') print "Running setup on master..." if opts.cluster_type == "mesos": setup_mesos_cluster(master, opts) -- cgit v1.2.3