From c72b190ad8fb10d5bc933edf06282378455f24f1 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Thu, 10 Dec 2009 13:14:59 -0800 Subject: [PATCH] create standard ssh keys for root in test-modified images Review URL: http://codereview.chromium.org/487002 --- mod_for_test_scripts/350addTestAuthKeys | 14 ++++++++++++++ mod_for_test_scripts/ssh_keys/testing_rsa.pub | 1 + 2 files changed, 15 insertions(+) create mode 100755 mod_for_test_scripts/350addTestAuthKeys create mode 100644 mod_for_test_scripts/ssh_keys/testing_rsa.pub diff --git a/mod_for_test_scripts/350addTestAuthKeys b/mod_for_test_scripts/350addTestAuthKeys new file mode 100755 index 0000000000..b3f1d0fb9e --- /dev/null +++ b/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} diff --git a/mod_for_test_scripts/ssh_keys/testing_rsa.pub b/mod_for_test_scripts/ssh_keys/testing_rsa.pub new file mode 100644 index 0000000000..7a4d033a02 --- /dev/null +++ b/mod_for_test_scripts/ssh_keys/testing_rsa.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvsNpFdK5lb0GfKx+FgsrsM/2+aZVFYXHMPdvGtTz63ciRhq0Jnw7nln1SOcHraSz3/imECBg8NHIKV6rA+B9zbf7pZXEv20x5Ul0vrcPqYWC44PTtgsgvi8s0KZUZN93YlcjZ+Q7BjQ/tuwGSaLWLqJ7hnHALMJ3dbEM9fKBHQBCrG5HOaWD2gtXj7jp04M/WUnDDdemq/KMg6E9jcrJOiQ39IuTpas4hLQzVkKAKSrpl6MY2etHyoNarlWhcOwitArEDwf3WgnctwKstI/MTKB5BTpO2WXUNUv4kXzA+g8/l1aljIG13vtd9A/IV3KFVx/sLkkjuZ7z2rQXyNKuJw== ChromeOS test key