flatcar-scripts/mod_for_test_scripts
Elly Jones 39ba1e5891 mod_image_for_test: add --{no,}standard_backdoor option.
The default is --standard_backdoor, which installs well-known ssh keys and sets
a well-known root password. Passing --nostandard_backdoor will cause
mod_image_for_test to use ssh keys from ~/.ssh/*.pub instead of the test keys
and not set the root password.

BUG=chromium-os:11744
TEST=Adhoc
Build an image with --standard_backdoor.
ssh -i ${SRC}/src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa root@${DUT}
ssh root@${DUT} with 'test0000'
cat /root/.ssh/authorized_keys # check for the test key
Build an image with --nostandard_backdoor.
ssh -o PubkeyAuthentication=no root@${DUT} # this will fail
ssh root@${DUT} # this should work
cat /root/.ssh/authorized_keys # check for just your keys

Change-Id: Ie92fbc9d3815f478698c8c94d938daca2b5cd53e
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/3449
Reviewed-by: David Rochberg <rochberg@chromium.org>
2011-06-30 11:38:34 -07:00
..
ssh_keys Cleanup and merge autotest wrappers. 2010-01-27 12:11:08 -08:00
000recordRootFsSize Fix rootfs size writing 2010-05-07 11:31:52 -07:00
001changeBuildName Modifies image so that devs can tell immediately whether their build is a test build 2010-03-23 13:51:19 -07:00
002enableDumps [crosutils] Remove test-image-specific change of core_pattern 2010-10-22 12:28:51 -07:00
100setupTestingInterface scripts: adjust to change in flimflam.conf 2011-06-01 11:57:57 -07:00
200disableIdleSuspend Moved disable_idle_suspend to rootfs from stateful partition for test images. 2010-09-07 09:34:12 -07:00
300changePassword mod_image_for_test: add --{no,}standard_backdoor option. 2011-06-30 11:38:34 -07:00
350addTestAuthKeys mod_image_for_test: add --{no,}standard_backdoor option. 2011-06-30 11:38:34 -07:00
400modifyUpstart Include saft.conf in the list of scripts modified for test. 2010-09-03 18:30:47 -07:00
700enableAutoxLogin Change mod_for_test_script to make it work with arm os image. 2010-03-15 20:35:59 -07:00
710enableAuthTesting mount /dev and /proc while altering rootfs image 2011-05-31 17:19:13 -07:00
750enableExternalExtensions Fix path for upcoming Autotest relocation. 2011-01-10 11:50:01 -08:00
900mountHomeExec Revert "This change removes the autotest mount-specific change from the mod_for_test scripts as we no longer need executable /tmp or /home for autotest." 2011-01-12 14:36:51 -08:00
test_setup.sh Change mod_for_test_script to make it work with arm os image. 2010-03-15 20:35:59 -07:00