Index: src/scripts/mod_for_test_scripts/350addTestAuthKeys |
diff --git a/src/scripts/mod_for_test_scripts/350addTestAuthKeys b/src/scripts/mod_for_test_scripts/350addTestAuthKeys |
new file mode 100755 |
index 0000000000000000000000000000000000000000..b3f1d0fb9e66fe18949c5beb16ae3cfbb0828f02 |
--- /dev/null |
+++ b/src/scripts/mod_for_test_scripts/350addTestAuthKeys |
@@ -0,0 +1,14 @@ |
+#!/bin/bash |
+ |
+# Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+# |
+# Copy public keys to root's homedir for ssh pubkey auth, which |
+# is necessary for test automation. |
+ |
+KEYS_DIR=ssh_keys |
+ROOT_AUTHKEYS=/root/.ssh/authorized_keys |
+ |
+mkdir -p /root/.ssh |
+cat ${KEYS_DIR}/* >> ${ROOT_AUTHKEYS} |