remote_access.sh: add remote_sh_raw for a non-buffered ssh connection.

BUG=chromium-os:20305
TEST=manual test of image_to_live.sh

Change-Id: I964088673d0dc2867e911368d9cc4ec73085a4f4
Reviewed-on: http://gerrit.chromium.org/gerrit/8082
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
This commit is contained in:
Andrew de los Reyes 2011-09-21 15:44:05 -07:00 committed by David James
parent 4d258cdf9d
commit e08639b859

View File

@ -37,6 +37,13 @@ function remote_sh() {
return ${PIPESTATUS[0]} return ${PIPESTATUS[0]}
} }
function remote_sh_raw() {
ssh -p ${FLAGS_ssh_port} -o StrictHostKeyChecking=no \
-o UserKnownHostsFile=$TMP_KNOWN_HOSTS -o ConnectTimeout=120 \
-i $TMP_PRIVATE_KEY $EXTRA_REMOTE_SH_ARGS root@$FLAGS_remote "$@"
return $?
}
function remote_sh_allow_changed_host_key() { function remote_sh_allow_changed_host_key() {
rm -f $TMP_KNOWN_HOSTS rm -f $TMP_KNOWN_HOSTS
remote_sh "$@" remote_sh "$@"