mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
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:
parent
4d258cdf9d
commit
e08639b859
@ -37,6 +37,13 @@ function remote_sh() {
|
||||
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() {
|
||||
rm -f $TMP_KNOWN_HOSTS
|
||||
remote_sh "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user