diff options
author | Matei Zaharia <matei@eecs.berkeley.edu> | 2012-12-10 15:12:06 -0800 |
---|---|---|
committer | Matei Zaharia <matei@eecs.berkeley.edu> | 2012-12-10 15:12:06 -0800 |
commit | 597520ae201513a51901c8e50f3815aff737d3d5 (patch) | |
tree | 8edf36547874934893c3a44005fed63f8461d7a0 | |
parent | a1a2daa7efa5b5240af38cf8190af01e764751a6 (diff) | |
download | spark-597520ae201513a51901c8e50f3815aff737d3d5.tar.gz spark-597520ae201513a51901c8e50f3815aff737d3d5.tar.bz2 spark-597520ae201513a51901c8e50f3815aff737d3d5.zip |
Make sure the SSH key we copy to EC2 has permissions 600.
SPARK-539 #resolve
-rwxr-xr-x | ec2/spark_ec2.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |