Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: src/scripts/mod_for_test_scripts/350addTestAuthKeys

Issue 487002: create standard ssh keys for root in test-modified images (Closed)
Patch Set: fixed comments. submitting. Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/testing/testing_rsa ('k') | src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa.pub » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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}
« no previous file with comments | « src/platform/testing/testing_rsa ('k') | src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa.pub » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698