This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Use a known github hostkey instead of keyscan

  • Loading branch information...
shivaram committed Aug 23, 2013
1 parent 125d1b6 commit 317330d39786c1f37b78d49bf1dcca1e756da1ae
Showing with 5 additions and 2 deletions.
  1. +1 −0 github.hostkey
  2. +4 −0 setup-slave.sh
  3. +0 −2 spark/init.sh
View
@@ -0,0 +1 @@
+|1|tu7mGtDnNMV5Xs/ck7wEXaYnylA=|onn7FtDZzuLR4Gz3dIJ2xBDyqyE= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
View
@@ -54,3 +54,7 @@ rm -f /root/.ssh/known_hosts
# Allow memory to be over committed. Helps in pyspark where we fork
echo 1 > /proc/sys/vm/overcommit_memory
+
+# Add github to known hosts to get git@github.com clone to work
+# TODO(shivaram): Avoid duplicate entries ?
+cat /root/spark-ec2/github.hostkey >> /root/.ssh/known_hosts
View
@@ -10,8 +10,6 @@ fi
# Github tag:
if [[ "$SPARK_VERSION" == *\|* ]]
then
- # Add github to known hosts to get git@github.com clone to work
- ssh-keyscan -H github.com >> /root/.ssh/known_hosts
mkdir spark
pushd spark
git init

0 comments on commit 317330d

Please sign in to comment.