From 37cea4fb4c30fd85fc21eb4386fec608ce853400 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 5 Mar 2013 15:06:42 +0100 Subject: [PATCH] use ssh agendt --- liveboot_gw_autotest.sh | 1 + pxe_install.sh | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/liveboot_gw_autotest.sh b/liveboot_gw_autotest.sh index 0a55b23..69eb02e 100755 --- a/liveboot_gw_autotest.sh +++ b/liveboot_gw_autotest.sh @@ -23,6 +23,7 @@ TMPFILE=$(mktemp) ssh-agent > $TMPFILE source $TMPFILE ssh-add ~/.ssh/id_ritest +rm $TMPFILE # # temp. until fabian has fixed liveboot diff --git a/pxe_install.sh b/pxe_install.sh index 554f351..b4e67d3 100755 --- a/pxe_install.sh +++ b/pxe_install.sh @@ -55,11 +55,20 @@ echo figlet $TARGET_HOST echo "successfully installed" -ssh -i ~/.ssh/id_ritest $TARGET_HOST uname -a +# +# prepare ssh +# +TMPFILE=$(mktemp) +ssh-agent > $TMPFILE +source $TMPFILE +ssh-add ~/.ssh/id_ritest +rm $TMPFILE + +ssh -t $TARGET_HOST uname -a echo -ssh -i ~/.ssh/id_ritest $TARGET_HOST "dpkg -l | egrep '(profit|bird|vcb|ofed|qemu|kvm)' | sort -k 50" +ssh -t $TARGET_HOST "dpkg -l | egrep '(profit|bird|vcb|ofed|qemu|kvm)' | sort -k 50" echo -ssh -i ~/.ssh/id_ritest $TARGET_HOST dpkg -l | grep develop || true +ssh -t $TARGET_HOST dpkg -l | grep develop || true echo -ssh -i ~/.ssh/id_ritest $TARGET_HOST "cat /etc/apt/sources.list.d/* /etc/apt/sources.list|grep -v ^#|sort -u" +ssh -t $TARGET_HOST "cat /etc/apt/sources.list.d/* /etc/apt/sources.list|grep -v ^#|sort -u" -- 2.39.5